From 65f6a91e86cdbe2c67e9185036e82925b3198566 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 4 Jan 2017 23:03:47 -0500 Subject: Link pthreads --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) 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} ) -- cgit v1.2.3