LINK_WARNING_AS_ERRORΒΆ
Added in version 4.0.
Specify whether to treat warnings on link as errors.
If enabled, adds a flag to treat warnings on link as errors.
If the cmake --link-no-warning-as-error option is given
on the cmake(1) command line, this property is ignored.
This property takes a semicolon-separated-list of the following values:
LINKER: treat the linker warnings as errors.DRIVER: treat the compiler warnings as errors when used to drive the link step. See theCOMPILE_WARNING_AS_ERRORtarget property for more information.
Moreover, for consistency with the COMPILE_WARNING_AS_ERROR target
property, a boolean value can be specified:
Truevalue: this is equivalent toLINKERandDRIVERvalues.Falsevalue: deactivate this feature for the target.
This property is not implemented for all linkers. It is silently ignored
if there is no implementation for the linker being used. The currently
implemented compiler linker IDs
are:
AIXAppleClangGNUGNUgoldLLDMOLDMSVCSolaris
This property is initialized by the value of the variable
CMAKE_LINK_WARNING_AS_ERROR if it is set when a target is
created.