Skip to content

Commit 5792a57

Browse files
attempt to make CI work
1 parent b11d092 commit 5792a57

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ endif()
190190

191191
if(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)
194196
else()
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.")
227229
endif()
228230
if(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.")
231233
endif()
232234

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Create an empty list for the tests
22
set( 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
58
macro( _add_test name )
69
# cmake-format: off

0 commit comments

Comments
 (0)