This commit is contained in:
Robin Müller 2020-12-28 17:48:26 +01:00
parent d268c6d96c
commit bc475f0a9a
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,8 @@ target_sources(${LIB_FSFW_NAME}
)
if(UNIX)
find_package(Threads REQUIRED)
target_link_libraries(${LIB_FSFW_NAME}
PRIVATE
rt

View File

@ -18,8 +18,14 @@ target_sources(${LIB_FSFW_NAME}
Timer.cpp
)
find_package(Threads REQUIRED)
target_link_libraries(${LIB_FSFW_NAME} PRIVATE
${CMAKE_THREAD_LIBS_INIT}
rt
)
target_link_libraries(${LIB_FSFW_NAME} INTERFACE
${CMAKE_THREAD_LIBS_INIT}
)