diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2018-11-08 14:06:52 (GMT) |
---|---|---|
committer | Robert Maynard <robert.maynard@kitware.com> | 2018-11-08 14:32:18 (GMT) |
commit | eba7273c203f0698ccd716604cc298b7da1d3ee6 (patch) | |
tree | ca4b49d2d43b3e3a1ece47b85477889a9246cb49 /Source/CPack/cpack.cxx | |
parent | 17e98e00c449ebdceac980c0ce65c800030605db (diff) | |
download | CMake-eba7273c203f0698ccd716604cc298b7da1d3ee6.zip CMake-eba7273c203f0698ccd716604cc298b7da1d3ee6.tar.gz CMake-eba7273c203f0698ccd716604cc298b7da1d3ee6.tar.bz2 |
cpack: Better error message when generator doesn't exist.
Currently the CPack error message when passed an invalid generator
name reads like the generator failed to work, rather than the
name was invalid.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r-- | Source/CPack/cpack.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index c083945..3df1b36 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -358,8 +358,9 @@ int main(int argc, char const* const* argv) cpackGenerator->SetTraceExpand(traceExpand); } else { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, - "Cannot initialize CPack generator: " << gen - << std::endl); + "Could not create CPack generator: " << gen + << std::endl); + parsed = 0; } |