From 4fdffafa1c7a2c0491d900cd0a32cffa3fd9c6ae Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Wed, 2 Jun 2021 13:58:57 +0200 Subject: [PATCH] Fix build system for some Linux systems With the previous commit for some Linux systems the needed link dependency for the thread library was missing. This commit add this dependency again. --- core/data/test/CMakeLists.txt | 3 +++ core/data/test/psd/CMakeLists.txt | 1 + core/data/test/trd/CMakeLists.txt | 1 + 3 files changed, 5 insertions(+) diff --git a/core/data/test/CMakeLists.txt b/core/data/test/CMakeLists.txt index 8e1df2b63c..196f329ece 100644 --- a/core/data/test/CMakeLists.txt +++ b/core/data/test/CMakeLists.txt @@ -18,6 +18,8 @@ Macro(CreateGTestExeAndAddTest _testname _includeDirs _linkDirs _sources _depend EndIf() EndMacro(CreateGTestExeAndAddTest) +FIND_PACKAGE(Threads REQUIRED) + add_subdirectory(psd) add_subdirectory(trd) @@ -52,6 +54,7 @@ Set(DEPENDENCIES ParBase GeoBase MbsAPI + ${CMAKE_THREAD_LIBS_INIT} ) set(SPECIAL_DEPENDENCIES diff --git a/core/data/test/psd/CMakeLists.txt b/core/data/test/psd/CMakeLists.txt index da3af12e45..a7494f9e7f 100644 --- a/core/data/test/psd/CMakeLists.txt +++ b/core/data/test/psd/CMakeLists.txt @@ -20,6 +20,7 @@ Set(DEPENDENCIES ${GTEST_BOTH_LIBRARIES} FairTools CbmData + ${CMAKE_THREAD_LIBS_INIT} ) If(FAIRLOGGER_FOUND) diff --git a/core/data/test/trd/CMakeLists.txt b/core/data/test/trd/CMakeLists.txt index 0586221e4b..67e8df8c6f 100644 --- a/core/data/test/trd/CMakeLists.txt +++ b/core/data/test/trd/CMakeLists.txt @@ -20,6 +20,7 @@ Set(DEPENDENCIES ${GTEST_BOTH_LIBRARIES} FairTools CbmData + ${CMAKE_THREAD_LIBS_INIT} ) If(FAIRLOGGER_FOUND) -- GitLab