Files
CMake/Help/variable/CMAKE_LINK_WARNING_AS_ERROR.rst
T
Marc Chevrier 7907c83175 Link step: Add LINK_WARNING_AS_ERROR target property
Add a way to specify, in a portable way, to raise an error for any
warning during the link step. For that purpose, define:
* CMAKE_LINK_WARNING_AS_ERROR variable
* LINK_WARNING_AS_ERROR target property

Fixes: #25343
2024-11-12 15:11:53 +01:00

10 lines
238 B
ReStructuredText

CMAKE_LINK_WARNING_AS_ERROR
---------------------------
.. versionadded:: 3.32
Specify whether to treat warnings on link as errors.
This variable is used to initialize the
:prop_tgt:`LINK_WARNING_AS_ERROR` property on all the targets.