diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-12-06 21:24:43 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-12-06 21:24:43 (GMT) |
commit | 8039bd0864aae15fd0d95db728159a85d72bf0f4 (patch) | |
tree | 9938d5200a3eace8090d83ca3bb026ec33ab8bf8 /Modules | |
parent | 8521a9e9cad06922dc316f2c3a82f0263bbd7e87 (diff) | |
download | CMake-8039bd0864aae15fd0d95db728159a85d72bf0f4.zip CMake-8039bd0864aae15fd0d95db728159a85d72bf0f4.tar.gz CMake-8039bd0864aae15fd0d95db728159a85d72bf0f4.tar.bz2 |
CONFIGURE_PACKAGE_CONFIG_FILE(): improve generated comments
CONFIGURE_PACKAGE_CONFIG_FILE() now additionally generates
"Any changes to this file will be overwritten by the next CMake run
The input file was FooConfig.cmake.in"
into the configured file.
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakePackageConfigHelpers.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake index 96ecb42..a92ce7c 100644 --- a/Modules/CMakePackageConfigHelpers.cmake +++ b/Modules/CMakePackageConfigHelpers.cmake @@ -188,8 +188,13 @@ function(CONFIGURE_PACKAGE_CONFIG_FILE _inputFile _outputFile) endif() endforeach() + get_filename_component(inputFileName "${_inputFile}" NAME) + set(PACKAGE_INIT " ####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was ${inputFileName} ######## + get_filename_component(PACKAGE_PREFIX_DIR \"\${CMAKE_CURRENT_LIST_DIR}/${PACKAGE_RELATIVE_PATH}\" ABSOLUTE) ") |