From: A. Maitland Bottoms Date: Mon, 5 Sep 2022 01:20:13 +0000 (-0400) Subject: [PATCH] omit build path X-Git-Tag: archive/raspbian/2.5.2-3+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=877aed376a9e9266be47635c3e7e67151ed3a9a7;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 75055ee..412cb11 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