From d0b08186b59aeb0837977c51b2c096c2c54d013e Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Fri, 11 Oct 2024 16:38:42 +0200 Subject: [PATCH] build: Specify project source directory for configured header templates --- build-support/macros-and-definitions.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake index 34804ec0d..8fc8076bf 100644 --- a/build-support/macros-and-definitions.cmake +++ b/build-support/macros-and-definitions.cmake @@ -818,7 +818,7 @@ macro(process_options) # Process config-store-config configure_file( - build-support/config-store-config-template.h + ${PROJECT_SOURCE_DIR}/build-support/config-store-config-template.h ${CMAKE_HEADER_OUTPUT_DIRECTORY}/config-store-config.h ) @@ -1119,7 +1119,7 @@ macro(process_options) check_function_exists("getenv" "HAVE_GETENV") configure_file( - build-support/core-config-template.h + ${PROJECT_SOURCE_DIR}/build-support/core-config-template.h ${CMAKE_HEADER_OUTPUT_DIRECTORY}/core-config.h )