File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ endif()
190190
191191if (Boost_graph_FOUND)
192192 set (OSP_DEPENDS_ON_BOOST_GRAPH ON )
193+ set_target_properties (Boost::graph PROPERTIES
194+ INTERFACE_SYSTEM_INCLUDE_DIRECTORIES $<TARGET_PROPERTY :Boost ::graph ,INTERFACE_INCLUDE_DIRECTORIES >)
193195 target_link_libraries (OneStopParallel INTERFACE Boost::graph )
194196else ()
195197 set (OSP_DEPENDS_ON_BOOST_GRAPH OFF )
@@ -226,7 +228,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "Library")
226228 message (STATUS "CMAKE_BUILD_TYPE is Library, so BUILD_TESTS is forced to OFF." )
227229endif ()
228230if (CMAKE_BUILD_TYPE STREQUAL "Release" )
229- set (BUILD_TESTS OFF )
231+ set (BUILD_TESTS ON )
230232 message (STATUS "CMAKE_BUILD_TYPE is Release, so BUILD_TESTS is forced to OFF." )
231233endif ()
232234
Original file line number Diff line number Diff line change 11# Create an empty list for the tests
22set ( tests_list )
33
4+ set_target_properties (Boost::unit_test_framework PROPERTIES
5+ INTERFACE_SYSTEM_INCLUDE_DIRECTORIES $<TARGET_PROPERTY :Boost ::unit_test_framework ,INTERFACE_INCLUDE_DIRECTORIES >)
6+
47# Function to create a test
58macro ( _add_test name )
69 # cmake-format: off
You can’t perform that action at this time.
0 commit comments