From 9eec75df263f3c184a279281a793b520c5daed81 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Fri, 25 Dec 2020 01:49:44 +0100 Subject: [PATCH] linking against thread lib --- osal/host/CMakeLists.txt | 2 +- osal/linux/CMakeLists.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/osal/host/CMakeLists.txt b/osal/host/CMakeLists.txt index aa32990b..ee6b4cdb 100644 --- a/osal/host/CMakeLists.txt +++ b/osal/host/CMakeLists.txt @@ -16,6 +16,6 @@ if(UNIX) target_link_libraries(${LIB_FSFW_NAME} PRIVATE rt - pthread + ${CMAKE_THREAD_LIBS_INIT} ) endif() \ No newline at end of file diff --git a/osal/linux/CMakeLists.txt b/osal/linux/CMakeLists.txt index c0096e42..e9a2935b 100644 --- a/osal/linux/CMakeLists.txt +++ b/osal/linux/CMakeLists.txt @@ -18,8 +18,8 @@ target_sources(${LIB_FSFW_NAME} Timer.cpp ) -target_link_libraries(${LIB_FSFW_NAME} - PRIVATE - rt - pthread +target_link_libraries(${LIB_FSFW_NAME} PRIVATE + ${CMAKE_THREAD_LIBS_INIT} + rt ) +