Cannot use @rules_foreign_cc//toolchains:current_cmake_toolchain in genrule
I'm attempting to run only the generate step of a cmake project, not actually build any targets, in order to generate a file created by configure_file. My best guess is I'd do this via a custom genrule, but I'm running into a pretty fundamental issue: $(CMAKE) isn't valid in a genrule with @rules_foreign_cc//toolchains:current_cmake_toolchain listed as one of the toolchains. Is this user error? The documentation seems to indicate that this rule is specifically meant for use in genrules.
Using bazel 5.1.1 for reference
This issue has been automatically marked as stale because it has not had any activity for 180 days. It will be closed if no further activity occurs in 30 days. Collaborators can add an assignee to keep this open indefinitely. Thanks for your contributions to rules_foreign_cc!
Does https://github.com/bazelbuild/rules_foreign_cc/commit/ee079b7261b9b4d1e01474e35fe45b25d76d8837 fix this?