mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-24 19:59:47 +08:00
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
12 lines
541 B
ReStructuredText
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.
|