ソースを参照

Add pthread linker

Eric Ramat 9 年 前
コミット
2c44f2a648
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/tests/multithreading/CMakeLists.txt

+ 1 - 0
src/tests/multithreading/CMakeLists.txt

@@ -21,5 +21,6 @@ ADD_EXECUTABLE(pdevs-multithreading-main graph_manager.hpp main.cpp
   ../boost_graph/graph_partitioning.hpp ../boost_graph/models.hpp)
 
 TARGET_LINK_LIBRARIES(pdevs-multithreading-main partitioning
+  ${CMAKE_THREAD_LIBS_INIT}
   ${Boost_SYSTEM_LIBRARY}
   ${Boost_TIMER_LIBRARY})