mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
Merge topic 'DxxxxWarnings'
442170a5e7 cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8277
This commit is contained in:
@@ -38,6 +38,8 @@ function(cm_check_cxx_feature name)
|
||||
string(REGEX REPLACE " +0 Warning\\(s\\)" "" check_output "${check_output}")
|
||||
# Filter out MSBuild output that looks like a warning.
|
||||
string(REGEX REPLACE "[^\n]*warning MSB[0-9][0-9][0-9][0-9][^\n]*" "" check_output "${check_output}")
|
||||
# Filter out MSVC output that looks like a command-line warning.
|
||||
string(REGEX REPLACE "[^\n]*warning D[0-9][0-9][0-9][0-9][^\n]*" "" check_output "${check_output}")
|
||||
# Filter out warnings caused by user flags.
|
||||
string(REGEX REPLACE "[^\n]*warning:[^\n]*-Winvalid-command-line-argument[^\n]*" "" check_output "${check_output}")
|
||||
# Filter out warnings caused by local configuration.
|
||||
|
||||
Reference in New Issue
Block a user