Don't build j1939 for Android

This library uses if_nameindex symbol, not available at this system.
pull/119/head
Tomasz Wasilczyk 2019-01-10 12:03:06 -08:00
parent 8991b5c47d
commit 4da344b2aa
1 changed files with 4 additions and 4 deletions

View File

@ -63,6 +63,10 @@ set(PROGRAMS
if(NOT ANDROID) if(NOT ANDROID)
list(APPEND PROGRAMS ${PROGRAMS_J1939}) list(APPEND PROGRAMS ${PROGRAMS_J1939})
add_library(j1939 STATIC
libj1939.c
)
endif() endif()
add_library(can STATIC add_library(can STATIC
@ -70,10 +74,6 @@ add_library(can STATIC
canframelen.c canframelen.c
) )
add_library(j1939 STATIC
libj1939.c
)
foreach(name ${PROGRAMS}) foreach(name ${PROGRAMS})
add_executable(${name} ${name}.c) add_executable(${name} ${name}.c)