Skip to content

Commit 8a722df

Browse files
committed
set_cover: disable some tests when SCIP is disable
1 parent 0c8d642 commit 8a722df

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ortools/set_cover/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ target_link_libraries(${NAME} PRIVATE
3333

3434
if(BUILD_TESTING)
3535
file(GLOB _TEST_SRCS "*_test.cc")
36+
if(NOT USE_SCIP)
37+
list(FILTER _TEST_SRCS EXCLUDE REGEX ".*/set_cover_test.cc")
38+
endif()
3639
foreach(_FULL_FILE_NAME IN LISTS _TEST_SRCS)
3740
get_filename_component(_NAME ${_FULL_FILE_NAME} NAME_WE)
3841
get_filename_component(_FILE_NAME ${_FULL_FILE_NAME} NAME)

0 commit comments

Comments
 (0)