Use the new(ish) PREFIX option of rapids-cmake version, git revision header utils.

Generate macros prefixed with NVBENCH instead of redefining them from NVBench.
This commit is contained in:
Allison Piper
2025-04-15 20:33:06 +00:00
parent eadb913322
commit 109449438b
4 changed files with 7 additions and 14 deletions

View File

@@ -20,6 +20,9 @@ endmacro()
# Called after project(...)
macro(nvbench_init_rapids_cmake)
rapids_cmake_build_type(Release)
rapids_cmake_write_version_file("${NVBench_BINARY_DIR}/nvbench/detail/version.cuh")
rapids_cmake_write_version_file(
"${NVBench_BINARY_DIR}/nvbench/detail/version.cuh"
PREFIX "NVBENCH"
)
rapids_cpm_init()
endmacro()