Merge topic 'LINK_WARNING_AS_ERROR-extend-capabilities'

b350f95ecf LINK_WARNING_AS_ERROR property: extend capabilities
216c469214 MSVC: Use dash-style flag for LINK_WARNING_AS_ERROR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10133
This commit is contained in:
Brad King
2025-01-17 13:50:03 +00:00
committed by Kitware Robot
14 changed files with 153 additions and 19 deletions

View File

@@ -8,5 +8,5 @@ include_guard()
macro(__linker_msvc lang)
# Linker warning as error
set(CMAKE_${lang}_LINK_OPTIONS_WARNING_AS_ERROR "LINKER:/WX")
set(CMAKE_${lang}_LINK_OPTIONS_WARNING_AS_ERROR "LINKER:-WX")
endmacro()