| 1 |
function(bar) |
| 2 |
list(APPEND CMAKE_MESSAGE_CONTEXT "bar") |
| 3 |
list(APPEND CMAKE_MESSAGE_INDENT "<-- indent -->") |
| 4 |
message(VERBOSE "bar VERBOSE message") |
| 5 |
endfunction() |
| 6 |
|
| 7 |
function(baz) |
| 8 |
list(APPEND CMAKE_MESSAGE_CONTEXT "baz") |
| 9 |
message(DEBUG "This is the multi-line\nbaz DEBUG message") |
| 10 |
endfunction() |
| 11 |
|
| 12 |
function(foo) |
| 13 |
list(APPEND CMAKE_MESSAGE_CONTEXT "foo") |
| 14 |
bar() |
| 15 |
message(TRACE "foo TRACE message") |
| 16 |
baz() |
| 17 |
endfunction() |
| 18 |
|
| 19 |
message(STATUS "Begin context output test") |
| 20 |
list(APPEND CMAKE_MESSAGE_CONTEXT "top") |
| 21 |
|
| 22 |
message(STATUS "Top: before") |
| 23 |
foo() |
| 24 |
message(STATUS "Top: after") |
| 25 |
|
| 26 |
list(POP_BACK CMAKE_MESSAGE_CONTEXT) |
| 27 |
message(STATUS "End of context output test") |