2 COMMAND ${CMAKE_COMMAND} -P
3 "@CMAKE_CURRENT_SOURCE_DIR@/MessageTestScript.cmake"
9 message("out=[${out}]")
10 message("err=[${err}]")
12 if(NOT "${result}" STREQUAL "0")
13 message(FATAL_ERROR "message script failed: [${result}]")
16 if(NOT "${out}" MATCHES "message-status")
17 message(FATAL_ERROR "message(STATUS) did not go to stdout")
20 if(NOT "${err}" MATCHES "message-default")
21 message(FATAL_ERROR "message() did not go to stderr by default")
24 if(NOT "${err}" MATCHES "CMake Warning at[^\n]*:\r?\n message-warning")
25 message(FATAL_ERROR "message(WARNING) did not appear properly")
28 if(NOT "${err}" MATCHES "CMake Warning \\(dev\\) at[^\n]*:\r?\n message-author")
29 message(FATAL_ERROR "message(AUTHOR_WARNING) did not appear properly")