summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt3
-rw-r--r--src/support/CMakeLists.txt1
2 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f8121a21..8b90dc0b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -63,9 +63,6 @@ ELSE()
ADD_COMPILE_FLAG("-Wno-unused-parameter")
ADD_COMPILE_FLAG("-fno-omit-frame-pointer")
ADD_COMPILE_FLAG("-fPIC")
- IF(CMAKE_THREAD_LIBS_INIT)
- ADD_LINK_FLAG("${CMAKE_THREAD_LIBS_INIT}")
- ENDIF()
IF(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
ADD_COMPILE_FLAG("-O0")
ADD_COMPILE_FLAG("-g3")
diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt
index 08546e3ee..b12ef6edd 100644
--- a/src/support/CMakeLists.txt
+++ b/src/support/CMakeLists.txt
@@ -8,3 +8,4 @@ SET(support_SOURCES
threads.cpp
)
ADD_LIBRARY(support STATIC ${support_SOURCES})
+TARGET_LINK_LIBRARIES(support ${CMAKE_THREAD_LIBS_INIT})