Skip to content

Commit

Permalink
Look for Gurobi 9.5
Browse files Browse the repository at this point in the history
CMake's find_package_handle_standard_args() supports searching
for an "exact" version containing only a major and minor version,
allowing any patch version to suffice.

Issue: RobotLocomotion#14157
  • Loading branch information
KyleFromKitware committed Dec 14, 2022
1 parent 65f67af commit 87e8617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ set(BAZEL_CONFIGS)
option(WITH_GUROBI "Build with support for Gurobi" OFF)

if(WITH_GUROBI)
find_package(Gurobi 9.5.1 EXACT MODULE REQUIRED)
find_package(Gurobi 9.5 EXACT MODULE REQUIRED)

list(APPEND BAZEL_CONFIGS --config=gurobi)

Expand Down

0 comments on commit 87e8617

Please sign in to comment.