From f904529d9e32ba252b29b3d5e6273be1f5b29ac6 Mon Sep 17 00:00:00 2001 From: Alban Gauthier <28575421+AlbanGauthier@users.noreply.github.com> Date: Mon, 21 Oct 2019 18:09:01 +0200 Subject: [PATCH] fixed issue with lpthread not being linked properly --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01a4966..e919c8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,9 @@ else() message(WARNING "Chomod not found, solving will be significantly slower than expected.") endif() +find_package(Threads) +set(ALLLIBS ${ALLLIBS} ${CMAKE_THREAD_LIBS_INIT}) + ## FILES ########################################################################## set(SURFACE_MESH_SRC_FILES otlib/surface_mesh/IO.cpp @@ -128,3 +131,4 @@ target_link_libraries(stippling otapputils otlib ${ALLLIBS}) add_executable(barycenters apps/barycenters.cpp) target_link_libraries(barycenters otapputils otlib ${ALLLIBS}) +