Using Bzlmod with Bazel 6 or greater
- (Bazel 6 only) Enable with
common --enable_bzlmod
in.bazelrc
. - Add to your
MODULE.bazel
file:
bazel_dep(name = "cmake_configure_file", version = "0.1.4")
Using WORKSPACE
Paste this snippet into your WORKSPACE.bazel
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "cmake_configure_file",
sha256 = "1083b337bb65faf3c05aa6a8adde634d560a0f3da32e5e8ec3d610a22df27cae",
strip_prefix = "cmake_configure_file-0.1.4",
url = "https://github.com/wep21/cmake_configure_file/releases/download/v0.1.4/cmake_configure_file-v0.1.4.tar.gz",
)
Full Changelog: v0.1.3...v0.1.4