Debian Codegraph @

Tests/RunCMake/message/message-indent-multiline.cmake

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