summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-12-11 13:43:59 -0500
committerCMake Topic Stage <kwrobot@kitware.com>2012-12-11 13:43:59 -0500
commit3d0f1957d1e3178a6977aa840627cd592a2bd46e (patch)
tree1b629311f660d9f21e1d2ef30b69ba8d656893d2 /Modules
parentb575eadcdaf55fa4fe9a9d2dd8cb5e530365eae9 (diff)
parent8039bd0864aae15fd0d95db728159a85d72bf0f4 (diff)
downloadcmake-3d0f1957d1e3178a6977aa840627cd592a2bd46e.tar.gz
Merge topic 'ConfigHelperMinorCommentFix'
8039bd0 CONFIGURE_PACKAGE_CONFIG_FILE(): improve generated comments
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakePackageConfigHelpers.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakePackageConfigHelpers.cmake b/Modules/CMakePackageConfigHelpers.cmake
index 96ecb4270c..a92ce7cc96 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)
")