Fix linkage of pthread

This commit is contained in:
Matthias Hochsteger 2019-07-10 16:04:03 +02:00
parent b26286d9cd
commit 133bd82aa9

View File

@ -39,7 +39,7 @@ if(USE_PYTHON)
target_include_directories(ngcore PRIVATE ${PYTHON_INCLUDE_DIRS}) target_include_directories(ngcore PRIVATE ${PYTHON_INCLUDE_DIRS})
target_link_libraries(ngcore PRIVATE ${PYTHON_LIBRARIES}) target_link_libraries(ngcore PRIVATE ${PYTHON_LIBRARIES})
endif(USE_PYTHON) 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 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 exception.hpp symboltable.hpp paje_trace.hpp utils.hpp profiler.hpp mpi_wrapper.hpp