summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/message/message-indent-multiline.cmake
blob: 38155690bcf5f86ee40a2b344976ab7dca776add (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# NOTE Use non-space indent string, to check indentation
# of line endings and "empty" lines.
# ALERT Do not put any space characters after the non-space!
list(APPEND CMAKE_MESSAGE_INDENT " >")
set(msg [[This is
the multiline
message]]) # No `\n` at the end!
# NOTE Two empty lines after the text
message(STATUS "${msg}\n\n")
message(STATUS "${msg}")
# This is just to make sure NOTICE messages are also get indented:
# https://gitlab.kitware.com/cmake/cmake/-/issues/19418#note_588011
message(NOTICE "${msg}")