summaryrefslogtreecommitdiffstats
path: root/Help/variable
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-06-24 13:44:12 (GMT)
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-06-28 14:03:22 (GMT)
commit23bbac941a94391548b57303f9ab371fa5a82b96 (patch)
tree89904fe6d1db1488414b4c5dae54696a8782bec3 /Help/variable
parent2b6ef864e0906480e2eab4ed90a273fa629aaa62 (diff)
downloadCMake-23bbac941a94391548b57303f9ab371fa5a82b96.zip
CMake-23bbac941a94391548b57303f9ab371fa5a82b96.tar.gz
CMake-23bbac941a94391548b57303f9ab371fa5a82b96.tar.bz2
Add cmake_language(GET_MESSAGE_LOG_LEVEL) sub command
The new sub-command writes a string representation of the current log level to the output variable given to the sub-command. Given that the log-level might be set either via the --log-level command line option or via the CMAKE_MESSAGE_LOG_LEVEL cache / regular variables, the priority for each of the log level sources is as follows, with the first one being the highest: 1) --log-level 2) CMAKE_MESSAGE_LOG_LEVEL regular variable 3) CMAKE_MESSAGE_LOG_LEVEL cache variable 4) default log level (STATUS) Fixes: #23572
Diffstat (limited to 'Help/variable')
-rw-r--r--Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst b/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
index 3b45d1d..54ea6a4 100644
--- a/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
+++ b/Help/variable/CMAKE_MESSAGE_LOG_LEVEL.rst
@@ -15,3 +15,8 @@ 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.
+
+.. versionadded:: 3.25
+ See the :command:`cmake_language`
+ :ref:`cmake_language <query_message_log_level>` command for a way to query
+ the current message logging level.