mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cmake: add rt lib to interface libraries
This commit is contained in:
parent
e077285d98
commit
5859364ad1
2 changed files with 6 additions and 5 deletions
|
@ -36,8 +36,13 @@ set(LIBRARIES
|
|||
stdc++
|
||||
)
|
||||
|
||||
# For shmem_unlink
|
||||
if(UNIX AND NOT APPLE)
|
||||
list(APPEND LIBRARIES "rt")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
||||
list(APPEND LIBRARIES "-lstdc++fs")
|
||||
list(APPEND LIBRARIES "-lstdc++fs")
|
||||
endif()
|
||||
|
||||
set(LIB_SRC
|
||||
|
|
|
@ -69,10 +69,6 @@ endif()
|
|||
# Enable shared memory node-type
|
||||
if(WITH_NODE_SHMEM)
|
||||
list(APPEND NODE_SRC shmem.cpp)
|
||||
|
||||
if(CMAKE_SUSTEM_NAME STREQUAL Linux)
|
||||
list(APPEND LIBRARIES rt)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Enable IEC61850 node-types when libiec61850 is available
|
||||
|
|
Loading…
Add table
Reference in a new issue