From 2e67eff80ebf884b6185758ad37236009ec2f649 Mon Sep 17 00:00:00 2001 From: Xenosoz Hwang Date: Sat, 22 Nov 2014 11:13:46 +0900 Subject: Add missing dynamic shared object info A linker option '-lpthread' was required on my Gentoo system. --- tests/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5ea48f1..65ab230 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -8,7 +8,8 @@ unittest.cpp add_executable(unittest ${TEST_SRCS}) #target_link_libraries(unittest crow) -target_link_libraries(unittest ${Boost_LIBRARIES} ) +target_link_libraries(unittest ${Boost_LIBRARIES}) +target_link_libraries(unittest ${CMAKE_THREAD_LIBS_INIT}) if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") # using Clang -- cgit v1.2.3-54-g00ecf