summaryrefslogtreecommitdiffstats
path: root/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2019-10-10 12:28:12 (GMT)
committerCraig Scott <craig.scott@crascit.com>2019-10-12 06:01:15 (GMT)
commit5bf85e25178f5d9f19d2f30cf66f088c21e1114a (patch)
treedd22cbdaa84ef3faa5da98ced25adfed3219a507 /Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
parentaa59badd6f1ab3c40d3674c26e1e55271d25225c (diff)
downloadCMake-5bf85e25178f5d9f19d2f30cf66f088c21e1114a.zip
CMake-5bf85e25178f5d9f19d2f30cf66f088c21e1114a.tar.gz
CMake-5bf85e25178f5d9f19d2f30cf66f088c21e1114a.tar.bz2
message: Add new CMAKE_MESSAGE_LOG_LEVEL variable
Diffstat (limited to 'Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst')
-rw-r--r--Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst b/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
new file mode 100644
index 0000000..1d4cfe6
--- /dev/null
+++ b/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
@@ -0,0 +1,15 @@
+CMAKE_MESSAGE_LOG_LEVEL
+-----------------------
+
+When set, this variable specifies the logging level used by the
+:command:`message` command. Valid values are the same as those for the
+``--log-level`` command line option of the :manual:`cmake(1)` program.
+If this variable is set and the ``--log-level`` command line option is
+given, the command line option takes precedence.
+
+The main advantage to using this variable is to make a log level persist
+between CMake runs. Setting it as a cache variable will ensure that
+subsequent CMake runs will continue to use the chosen log level.
+
+Projects should not set this variable, it is intended for users so that
+they may control the log level according to their own needs.