blob: 055506b0172706a34b84c982c6c2fe14f32d36e4 [file]
cmake_diagnostic(SET CMD_AUTHOR IGNORE)
cmake_diagnostic(GET CMD_AUTHOR action)
if(NOT "${action}" STREQUAL "IGNORE")
message(SEND_ERROR "failed to set diagnostic state")
endif()
cmake_diagnostic(PUSH)
cmake_diagnostic(SET CMD_AUTHOR SEND_ERROR)
cmake_diagnostic(GET CMD_AUTHOR action)
if(NOT "${action}" STREQUAL "SEND_ERROR")
message(SEND_ERROR "failed to set diagnostic state")
endif()
cmake_diagnostic(POP)
cmake_diagnostic(GET CMD_AUTHOR action)
if(NOT "${action}" STREQUAL "IGNORE")
message(SEND_ERROR "failed to restore diagnostic state")
endif()