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} )