Skip to content

Commit

Permalink
[cmake] add BOOST_TEST_DYN_LINK
Browse files Browse the repository at this point in the history
Needed on travis?
  • Loading branch information
fabiencastan committed Apr 26, 2020
1 parent e18a844 commit a9a57a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cmake/Helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ function(alicevision_add_test test_file)
Boost::unit_test_framework
Boost::log
)
if(BUILD_SHARED_LIBS)
target_compile_options(${TEST_EXECUTABLE_NAME}
PUBLIC -DBOOST_TEST_DYN_LINK
)
endif()

target_include_directories(${TEST_EXECUTABLE_NAME}
PUBLIC ${TEST_INCLUDE_DIRS}
Expand Down

0 comments on commit a9a57a6

Please sign in to comment.