bazel-contrib / bazel-contrib/rules_foreign_cc

How to override properly cmake version?

Open
#1,396 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
737
Forks
270
PR merge metrics
No merged PRs in 30d

Description

I'm not clear on how to override cmake version in a bazel module setup?
I posted this on [slack](https://bazelbuild.slack.com/archives/CGA9QFQ8H/p1745949478184649) as well.

I found a couple of issues:
* Seems to only look at cmake_version from non-root modules
*Only allows a single version to be set, but rules_foreign_cc MODULE.bazel registers a specific version repository

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the rules_foreign_cc MODULE.bazel entry point and trace how cmake_version is handled for root and non-root modules. Check how the module registers its specific version repository; done means documenting or clarifying a supported override path that handles the reported single-version limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.