From e066455f2950b4adfd0e4a7282a456c0d7116df0 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Tue, 16 Dec 2025 12:25:51 +0100 Subject: [PATCH] algorithms: fix windows build when SCIP support is off --- ortools/algorithms/knapsack_solver_test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ortools/algorithms/knapsack_solver_test.cc b/ortools/algorithms/knapsack_solver_test.cc index 2c7572aead..771037b351 100644 --- a/ortools/algorithms/knapsack_solver_test.cc +++ b/ortools/algorithms/knapsack_solver_test.cc @@ -133,7 +133,9 @@ int64_t SolveKnapsackProblem( return kInvalidSolution; } #else // !defined(USE_SCIP) +#if !defined(_MSC_VER) #warning SCIP support disable +#endif // !defined(_MSC_VER) #endif // !defined(USE_SCIP) const int64_t cpsat_profit = SolveKnapsackProblemUsingSpecificSolver(