cmake_test/overrides
Warning
Including this module will override the default message()
implementation.
Attention
This module is intended for internal use only
- cmake_test/overrides.message()
This function overrides the standard message() function to convert fatal_errors into CMakePP GENERIC_ERROR exceptions. This is useful for executing tests which are expected to fail without requiring subprocesses. If the first argument is not FATAL_ERROR, this function will behave exactly as the original message().
- cmake_test/overrides.ct_exit()
This function will cause the CMake interpreter to stop processing immediately and it will throw a stack trace. There is unfortunately no way to silence the stacktrace. Details of why the interpreter was exited may be entered as the first argument to this function.
- Parameters:
ARGV0 – The first argument is optional. If specified, ARGV0 is used for the details of the exit message.