deec3a3f06
Make the message suppression more consistent, by adding a check for the message related CMake variables in cmake::IssueMessage, which allows callers of IssueMessage other than the message command to behave as expected. Also added a check for CMAKE_SUPPRESS_DEVELOPER_WARNINGS in the message command to mirror the deprecated message type behaviour. Added a 'force' flag to the cmake::IssueMessage method, to make the message suppression consistent, when setting the message related CMake variables directly in a CMake file. Expand message command tests to cover the AUTHOR_WARNING message type as well.
9 lines
181 B
CMake
9 lines
181 B
CMake
|
|
set(CMAKE_WARN_DEPRECATED ON)
|
|
|
|
message(DEPRECATION "This is a deprecation warning")
|
|
|
|
set(CMAKE_SUPPRESS_DEVELOPER_WARNINGS OFF)
|
|
|
|
message(AUTHOR_WARNING "This is a author warning")
|