mirror of
https://github.com/reactos/CMake.git
synced 2024-12-04 17:56:26 +00:00
28f2d750ed
Expand the -W set of cmake options to include support for the -Werror and -Wno-error format, which is used to control upgrading and downgrading warning and error messages. Implement support for these new formats for the dev and deprecated message types. Add tests and updated documentation for new options.
8 lines
316 B
CMake
8 lines
316 B
CMake
# with -Werror=dev this will also cause an (upgraded) AUTHOR_ERROR message,
|
|
# checks that messages issued outside of the message command, by other CMake
|
|
# commands, also are affected by -Werror=dev
|
|
include("")
|
|
|
|
# message command sets fatal occurred flag, so run it last
|
|
message(AUTHOR_WARNING "Some author warning")
|