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/cmExportFileGenerator.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/cmExportFileGenerator.cxx')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 3661f07..452eb99 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -1006,9 +1006,11 @@ void cmExportFileGenerator::GenerateExpectedTargetsCode( " return()\n" "endif()\n" "if(NOT _cmake_targets_defined STREQUAL \"\")\n" + " string(REPLACE \";\" \", \" _cmake_targets_defined_text \"${_cmake_targets_defined}\")\n" + " string(REPLACE \";\" \", \" _cmake_targets_not_defined_text \"${_cmake_targets_not_defined}\")\n" " message(FATAL_ERROR \"Some (but not all) targets in this export " - "set were already defined.\\nTargets Defined: ${_cmake_targets_defined}\\n" - "Targets not yet defined: ${_cmake_targets_not_defined}\\n\")\n" + "set were already defined.\\nTargets Defined: ${_cmake_targets_defined_text}\\n" + "Targets not yet defined: ${_cmake_targets_not_defined_text}\\n\")\n" "endif()\n" "unset(_cmake_targets_defined)\n" "unset(_cmake_targets_not_defined)\n" |