From bc475f0a9a794d75b90317ade116d7e3ada7aa9b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Mon, 28 Dec 2020 17:48:26 +0100 Subject: [PATCH] bugfixes --- osal/host/CMakeLists.txt | 2 ++ osal/linux/CMakeLists.txt | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/osal/host/CMakeLists.txt b/osal/host/CMakeLists.txt index ee6b4cdb..367f721e 100644 --- a/osal/host/CMakeLists.txt +++ b/osal/host/CMakeLists.txt @@ -13,6 +13,8 @@ target_sources(${LIB_FSFW_NAME} ) if(UNIX) + find_package(Threads REQUIRED) + target_link_libraries(${LIB_FSFW_NAME} PRIVATE rt diff --git a/osal/linux/CMakeLists.txt b/osal/linux/CMakeLists.txt index e9a2935b..474e548b 100644 --- a/osal/linux/CMakeLists.txt +++ b/osal/linux/CMakeLists.txt @@ -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} +) +