added pthread to CMakeLists.txt, it seems like it's needed on linux

This commit is contained in:
Kjistóf 2016-10-24 00:10:53 +02:00
parent 0bf31cb6e4
commit a9307e5657

View File

@ -4,6 +4,9 @@ project(cpp11NHF1_refcountedString)
set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")
find_package (Threads REQUIRED)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
include(FindGTest) include(FindGTest)
enable_testing() enable_testing()
find_package(GTest REQUIRED) find_package(GTest REQUIRED)