Skip to content

Commit

Permalink
Fix link problem on FreeBSD for test_module
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Jun 16, 2024
1 parent 65fb7a3 commit 20eaeb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 20eaeb7

Please sign in to comment.