bazelbuild / rules_foreign_cc

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson)
https://bazelbuild.github.io/rules_foreign_cc
Apache License 2.0
649 stars 232 forks source link

Updated CMake version but Bazel still recognizes old version #1121

Closed vymao closed 8 months ago

vymao commented 8 months ago

I have an external repo that requires cmake >= 3.25, but despite upgrading CMake, Bazel still only recognizes my old version:

CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
  CMake 3.25 or higher is required.  You are running version 3.23.2

I have verified my version:

(transformers-v2) victor@Victors-MBP cmake-3.27.7 % cmake --version
cmake version 3.27.7

Is there something I can do to fix this?

vymao commented 8 months ago

Found the CMake version specification in rules_foreign_cc_dependencies(cmake_version = "3.26.4")