You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
693 B
33 lines
693 B
5 years ago
|
CMAKE_MESSAGE_INDENT
|
||
|
--------------------
|
||
|
|
||
|
The :command:`message` command joins the strings from this list and for
|
||
|
log levels of ``NOTICE`` and below, it prepends the resultant string to
|
||
|
each line of the message.
|
||
|
|
||
|
Example:
|
||
|
|
||
|
.. code-block:: cmake
|
||
|
|
||
|
list(APPEND listVar one two three)
|
||
|
|
||
|
message(VERBOSE [[Collected items in the "listVar":]])
|
||
|
list(APPEND CMAKE_MESSAGE_INDENT " ")
|
||
|
|
||
|
foreach(item IN LISTS listVar)
|
||
|
message(VERBOSE ${item})
|
||
|
endforeach()
|
||
|
|
||
|
list(POP_BACK CMAKE_MESSAGE_INDENT)
|
||
|
message(VERBOSE "No more indent")
|
||
|
|
||
|
Which results in the following output:
|
||
|
|
||
|
.. code-block:: none
|
||
|
|
||
|
-- Collected items in the "listVar":
|
||
|
-- one
|
||
|
-- two
|
||
|
-- three
|
||
|
-- No more indent
|