summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-07-07 08:51:23 (GMT)
committerCraig Scott <craig.scott@crascit.com>2019-07-08 10:11:33 (GMT)
commit14ed40d670e522e33b89102a1e2bb2aed10d0590 (patch)
tree89541ebd375b238de4c58546a058054a65a1ba18 /Source/cmakemain.cxx
parent753373579e3dd8cf19f0fc18f4d9bec43a2d82e8 (diff)
downloadCMake-14ed40d670e522e33b89102a1e2bb2aed10d0590.zip
CMake-14ed40d670e522e33b89102a1e2bb2aed10d0590.tar.gz
CMake-14ed40d670e522e33b89102a1e2bb2aed10d0590.tar.bz2
Help: Use consistent levels for cmake --loglevel and message()
The message() command requires uppercase log levels. Even though the cmake --loglevel option is not case sensitive, show the supported values as uppercase to match the message() docs as closely as possible, since they are related to the same feature. Also fixes the wrong string being shown for the warning level by cmake --help.
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 64026ca..a6348b3 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -96,7 +96,7 @@ static const char* cmDocumentationOptions[][2] = {
"Generate graphviz of dependencies, see "
"CMakeGraphVizOptions.cmake for more." },
{ "--system-information [file]", "Dump information about this system." },
- { "--loglevel=<error|warn|notice|status|verbose|debug|trace>",
+ { "--loglevel=<ERROR|WARNING|NOTICE|STATUS|VERBOSE|DEBUG|TRACE>",
"Set the verbosity of messages from CMake files." },
{ "--debug-trycompile",
"Do not delete the try_compile build tree. Only "