projects
/
volk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1438288
)
[PATCH] omit build path
author
A. Maitland Bottoms
<bottoms@debian.org>
Mon, 5 Sep 2022 01:20:13 +0000
(21:20 -0400)
committer
A. Maitland Bottoms
<bottoms@debian.org>
Sun, 16 Oct 2022 03:41:48 +0000
(
04:41
+0100)
Have CMake filter out build path from COMPILER_INFO
before using the string in constants.c
Signed-off-by: A. Maitland Bottoms <bottoms@debian.org>
Gbp-Pq: Name omit-build-paths
lib/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/lib/CMakeLists.txt
b/lib/CMakeLists.txt
index 75055ee341b446294771423a93e857960c88e1db..412cb119f3356cf4ec45ad37b3adf54502721a8a 100644
(file)
--- a/
lib/CMakeLists.txt
+++ b/
lib/CMakeLists.txt
@@
-454,6
+454,7
@@
message(STATUS "Loading version ${VERSION} into constants...")
#double escape for windows backslash path separators
string(REPLACE "\\" "\\\\" prefix "${prefix}")
+string(REPLACE "${CMAKE_SOURCE_DIR}" "$BUILD_DIR" COMPILER_INFO "${COMPILER_INFO}")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/constants.c.in