Skip to content

Commit 5bb667e

Browse files
committed
algorithms: fix windows build when SCIP support is off
1 parent fb45445 commit 5bb667e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ortools/algorithms/knapsack_solver_test.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ int64_t SolveKnapsackProblem(
133133
return kInvalidSolution;
134134
}
135135
#else // !defined(USE_SCIP)
136+
#if !defined(_MSC_VER)
136137
#warning SCIP support disable
138+
#endif // !defined(_MSC_VER)
137139
#endif // !defined(USE_SCIP)
138140

139141
const int64_t cpsat_profit = SolveKnapsackProblemUsingSpecificSolver(

0 commit comments

Comments
 (0)