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)