link-warning-as-errorΒΆ
The
CMAKE_LINK_WARNING_AS_ERROR
variable and correspondingLINK_WARNING_AS_ERROR
target property were added to enable link with a linker-specific flag to treat warnings as errors.The
cmake(1)
command line gained the--link-no-warning-as-error
option which causes the effects of theLINK_WARNING_AS_ERROR
target property andCMAKE_LINK_WARNING_AS_ERROR
variable to be ignored.