From a9307e56574cffa2419a7ad76fd761887a92589d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 24 Oct 2016 00:10:53 +0200 Subject: [PATCH] added pthread to CMakeLists.txt, it seems like it's needed on linux --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1247425..59106b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project(cpp11NHF1_refcountedString) set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") +find_package (Threads REQUIRED) +link_libraries(${CMAKE_THREAD_LIBS_INIT}) + include(FindGTest) enable_testing() find_package(GTest REQUIRED)