diff options
author | Brad King <brad.king@kitware.com> | 2011-11-17 21:39:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-11-22 20:55:04 (GMT) |
commit | 5c03438661c285a7cc5f1e691198ac4e8a68a8f6 (patch) | |
tree | aea98398fc643fe1cc3a17d621bc141bb64b7c86 | |
parent | a2be068c75890a9b6723c0bbb2d32a108cb84eed (diff) | |
download | CMake-5c03438661c285a7cc5f1e691198ac4e8a68a8f6.zip CMake-5c03438661c285a7cc5f1e691198ac4e8a68a8f6.tar.gz CMake-5c03438661c285a7cc5f1e691198ac4e8a68a8f6.tar.bz2 |
install(EXPORT): Improve target import failure message format
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 7777373..c4f5dfb 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -385,19 +385,16 @@ cmExportFileGenerator::GenerateImportedFileCheckLoop(std::ostream& os) "FOREACH(target ${_IMPORT_CHECK_TARGETS} )\n" " FOREACH(file ${_IMPORT_CHECK_FILES_FOR_${target}} )\n" " IF(NOT EXISTS \"${file}\" )\n" - " MESSAGE(FATAL_ERROR \"The imported target \\\"${target}\\\" " - "references the file \\\"${file}\\\", but this file does not exist. " - "There are multiple possible reasons:\n" - " * The file \\\"${file}\\\" has been manually " - "deleted, renamed or moved to another location.\n" - " * A previous install or uninstall procedure did not complete " - " successfully.\n" - " * The installation package was faulty, and contained\n" - "\\\"${CMAKE_CURRENT_LIST_FILE}\\\"\n" - "but not\n" - "\\\"${file}\\\"\n" - "which must always be installed together.\\n\"\n" - " )\n" + " MESSAGE(FATAL_ERROR \"The imported target \\\"${target}\\\"" + " references the file\n" + " \\\"${file}\\\"\n" + "but this file does not exist. Possible reasons include:\n" + "* The file was deleted, renamed, or moved to another location.\n" + "* An install or uninstall procedure did not complete successfully.\n" + "* The installation package was faulty and contained\n" + " \\\"${CMAKE_CURRENT_LIST_FILE}\\\"\n" + "but not all the files it references.\n" + "\")\n" " ENDIF()\n" " ENDFOREACH()\n" " UNSET(_IMPORT_CHECK_FILES_FOR_${target})\n" |