From 133bd82aa94545ffea59b5f8c0fe9c043acd92a5 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 10 Jul 2019 16:04:03 +0200 Subject: [PATCH] Fix linkage of pthread --- libsrc/core/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index a62c030c..de4b33c0 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -39,7 +39,7 @@ if(USE_PYTHON) target_include_directories(ngcore PRIVATE ${PYTHON_INCLUDE_DIRS}) target_link_libraries(ngcore PRIVATE ${PYTHON_LIBRARIES}) endif(USE_PYTHON) -target_link_libraries(ngcore PUBLIC netgen_mpi) +target_link_libraries(ngcore PUBLIC netgen_mpi PRIVATE ${CMAKE_THREAD_LIBS_INIT}) install(FILES ngcore.hpp archive.hpp type_traits.hpp version.hpp ngcore_api.hpp logging.hpp exception.hpp symboltable.hpp paje_trace.hpp utils.hpp profiler.hpp mpi_wrapper.hpp