Merge topic 'ConfigHelperMinorCommentFix'

8039bd0 CONFIGURE_PACKAGE_CONFIG_FILE(): improve generated comments
This commit is contained in:
David Cole 2012-12-11 13:43:59 -05:00 committed by CMake Topic Stage
commit 3d0f1957d1
1 changed files with 5 additions and 0 deletions

View File

@ -188,8 +188,13 @@ function(CONFIGURE_PACKAGE_CONFIG_FILE _inputFile _outputFile)
endif() endif()
endforeach() endforeach()
get_filename_component(inputFileName "${_inputFile}" NAME)
set(PACKAGE_INIT " set(PACKAGE_INIT "
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### ####### 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) get_filename_component(PACKAGE_PREFIX_DIR \"\${CMAKE_CURRENT_LIST_DIR}/${PACKAGE_RELATIVE_PATH}\" ABSOLUTE)
") ")