From 20eaeb785dcd18bd19ae3b029e0349f12f88a05a Mon Sep 17 00:00:00 2001 From: Bart Janssens Date: Sun, 16 Jun 2024 15:44:11 +0200 Subject: [PATCH] Fix link problem on FreeBSD for test_module --- test/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2bcfb66..4216607 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,6 +2,9 @@ include_directories(${CMAKE_SOURCE_DIR}/include) add_executable(test_module test_module.cpp) set_property(TARGET test_module PROPERTY COMPILE_FLAGS "-std=c++17") +if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD") + set_property(TARGET test_module PROPERTY LINK_OPTIONS "-pthread") +endif() target_link_libraries(test_module ${JLCXX_TARGET} ${JLCXX_STL_TARGET} ${Julia_LIBRARY}) add_test(NAME test_module COMMAND test_module)