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:
parent
289624ae2a
commit
a693e7b5db
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue