cmake_configure_file
v0.1.2
published 5 months ago
7 stars
1 forks
1 watchers
public
1 assets
130,277 downloads
4 KB
Compatibility level unknown
+NzyGcBfKGQpzRpvLFBFRIw//1+n5D4nCgPQBGQMjUE=
Maintained byDaisuke Nishimatsu
v0.1.2
March 13, 2025
[expand for release notes]

cmake_configure_file

This macro is alternative to cmake configure_file() in bazel, originally from drake.

Usage

# MODULE.bazel
bazel_dep(name = "cmake_configure_file", version = "0.1.0")

# BUILD.bazel
load(
    "@cmake_configure_file//:cmake_configure_file.bzl",
    "cmake_configure_file",
)

cmake_configure_file(
    name = ...,
    src = ...,
    out = ...,
    defines = [
        ...,
    ],
    undefines = [
        ...,
    ],
    visibility = ["//visibility:private"],
)