From e78aef15707e83258c121e5387b5a1d0f75e11ba Mon Sep 17 00:00:00 2001 From: Naios Date: Thu, 16 Jul 2015 22:35:50 +0200 Subject: [PATCH] linker fix --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b7c217..297d4ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,10 @@ if(CMAKE_BUILD_TOOL MATCHES "(msdev|devenv|nmake)") add_definitions(-Wall -Wextra) endif() +if(NOT WIN32) + find_package (Threads) +endif() + file(GLOB_RECURSE LIB_SOURCES include/*.cpp include/*.hpp include/*.h) add_library(continue STATIC ${LIB_SOURCES}) @@ -39,4 +43,5 @@ add_executable(continue_test ${TEST_SOURCES}) target_link_libraries(continue_test continue + ${CMAKE_THREAD_LIBS_INIT} )