build: Specify project source directory for configured header templates

This commit is contained in:
Gabriel Ferreira
2024-10-11 16:38:42 +02:00
parent 4492fa9025
commit d0b08186b5

View File

@@ -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
)