algorithms: disable knapsack_solver_test.py if SCIP no unavailable

This commit is contained in:
Mizux Seiha
2025-12-16 18:39:36 +01:00
parent b0391683a6
commit 447ab9bfbb

View File

@@ -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()