1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

cmake: only try building socket.c if libnl is present. (see #208)

This commit is contained in:
Niklas Eiling 2018-10-24 15:43:34 +02:00
parent 289624ae2a
commit a693e7b5db

View file

@ -23,7 +23,7 @@
set(NODE_SRC
influxdb.c
stats.c
signal_generator.c
signal_generator.c
)
if(LIBNL3_ROUTE_FOUND)
@ -31,11 +31,11 @@ if(LIBNL3_ROUTE_FOUND)
list(APPEND INCLUDE_DIRS LIBNL3_ROUTE_INCLUDE_DIRS)
endif()
if(WITH_IO)
if(LIBNL3_ROUTE_FOUND AND WITH_IO)
list(APPEND NODE_SRC
test_rtt.c
file.c
socket.c
socket.c
)
endif()
@ -49,7 +49,7 @@ endif()
# Enable shared memory node-type
if(HAS_SEMAPHORE AND HAS_MMAN)
list(APPEND NODE_SRC shmem.c)
if(CMAKE_SUSTEM_NAME STREQUAL Linux)
list(APPEND LIBRARIES rt)
endif()