diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 18:07:05 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-04-20 19:36:21 (GMT) |
commit | a1a7f629184cf068785330c81378106abf240542 (patch) | |
tree | 1287dff097aeba7f702478e922ffc120e9f0a219 /Source/cmInstallExportGenerator.cxx | |
parent | c2194176db8248d63e8e8b77740bf9a1285f3680 (diff) | |
download | CMake-a1a7f629184cf068785330c81378106abf240542.zip CMake-a1a7f629184cf068785330c81378106abf240542.tar.gz CMake-a1a7f629184cf068785330c81378106abf240542.tar.bz2 |
generated-scripts: improve prose messages with CMake lists
Instead of printing a CMake list, make it an English-style list. This
also allows the line-break algorithm to make these messages much more
readable.
Diffstat (limited to 'Source/cmInstallExportGenerator.cxx')
-rw-r--r-- | Source/cmInstallExportGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmInstallExportGenerator.cxx b/Source/cmInstallExportGenerator.cxx index 18ce601..eb7537d 100644 --- a/Source/cmInstallExportGenerator.cxx +++ b/Source/cmInstallExportGenerator.cxx @@ -202,8 +202,10 @@ void cmInstallExportGenerator::GenerateScriptActions(std::ostream& os, os << indentNN << "file(GLOB _cmake_old_config_files \"" << installedDir << this->EFGen->GetConfigImportFileGlob() << "\")\n"; os << indentNN << "if(_cmake_old_config_files)\n"; + os << indentNNN << "string(REPLACE \";\" \", \" _cmake_old_config_files_text \"${_cmake_old_config_files}\")\n"; os << indentNNN << R"(message(STATUS "Old export file \")" << installedFile - << "\\\" will be replaced. Removing files [${_cmake_old_config_files}].\")\n"; + << "\\\" will be replaced. Removing files [${_cmake_old_config_files_text}].\")\n"; + os << indentNNN << "unset(_cmake_old_config_files_text)\n"; os << indentNNN << "file(REMOVE ${_cmake_old_config_files})\n"; os << indentNN << "endif()\n"; os << indentNN << "unset(_cmake_old_config_files)\n"; |