algorithms: disable knapsack_solver_test.py if SCIP no unavailable
This commit is contained in:
@@ -33,6 +33,9 @@ add_library(${PROJECT_NAMESPACE}::knapsack_solver_pybind11 ALIAS knapsack_solver
|
||||
|
||||
if(BUILD_TESTING)
|
||||
file(GLOB PYTHON_SRCS "*_test.py")
|
||||
if(NOT USE_SCIP)
|
||||
list(FILTER PYTHON_SRCS EXCLUDE REGEX "knapsack_solver_test.py$")
|
||||
endif()
|
||||
foreach(FILE_NAME IN LISTS PYTHON_SRCS)
|
||||
add_python_test(FILE_NAME ${FILE_NAME})
|
||||
endforeach()
|
||||
|
||||
Reference in New Issue
Block a user