Skip to content

Commit

Permalink
[cmake] Fail fast on too-old Bazel 3.x (RobotLocomotion#18637)
Browse files Browse the repository at this point in the history
Set the same minimum version as the Bazel WORKSPACE.
  • Loading branch information
svenevs authored and xuchenhan-tri committed Feb 6, 2023
1 parent 908edff commit ba2f4e8
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 @@ -85,7 +85,7 @@ endif()

# The version passed to find_package(Bazel) should match the
# minimum_bazel_version value in the call to versions.check() in WORKSPACE.
set(MINIMUM_BAZEL_VERSION 3.0)
set(MINIMUM_BAZEL_VERSION 4.0)
find_package(Bazel ${MINIMUM_BAZEL_VERSION} MODULE REQUIRED)

get_filename_component(C_COMPILER_REALPATH "${CMAKE_C_COMPILER}" REALPATH)
Expand Down

0 comments on commit ba2f4e8

Please sign in to comment.