From: A. Maitland Bottoms Date: Mon, 5 Sep 2022 01:20:13 +0000 (-0400) Subject: [PATCH] omit build path X-Git-Tag: archive/raspbian/3.1.0-3+rpi1~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a9173a1452b4943710902d6afa9be1434ffe7ab2;p=volk.git [PATCH] omit build path Have CMake filter out build path from COMPILER_INFO before using the string in constants.c Signed-off-by: A. Maitland Bottoms Gbp-Pq: Name omit-build-paths --- diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 3cfffe5..09416e9 100644 --- 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