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: add rt lib to interface libraries

This commit is contained in:
Steffen Vogel 2020-07-01 14:36:18 +02:00
parent e077285d98
commit 5859364ad1
2 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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