m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-01-04 23:03:47 -0500
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-01-04 23:03:47 -0500
commit65f6a91e86cdbe2c67e9185036e82925b3198566 (patch)
tree40fc3e6e2915840d1703f55e1a9b8d08960d833e
parent17eae42992c8c2675993bca09c3e619456700122 (diff)
Link pthreads
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5d41e17..0ce6168 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(brandes CXX)
+find_package ( Threads REQUIRED )
+
option(DEBUG OFF)
if (DEBUG)
@@ -18,3 +20,4 @@ set(SOURCE_FILES src/brandes.cc
src/graph.h)
add_executable(brandes ${SOURCE_FILES})
+target_link_libraries(brandes ${CMAKE_THREAD_LIBS_INIT} )