1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-24 19:59:47 +08:00
Files
CMake/Help/release/dev/link-warning-as-error.rst
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

12 lines
541 B
ReStructuredText

link-warning-as-error
---------------------
* The :variable:`CMAKE_LINK_WARNING_AS_ERROR` variable and corresponding
:prop_tgt:`LINK_WARNING_AS_ERROR` target property were added to enable
link with a linker-specific flag to treat warnings as errors.
* The :manual:`cmake(1)` command line gained the
:option:`--link-no-warning-as-error <cmake --link-no-warning-as-error>`
option which causes the effects of the :prop_tgt:`LINK_WARNING_AS_ERROR`
target property and :variable:`CMAKE_LINK_WARNING_AS_ERROR` variable to be
ignored.