diff options
author | Brad King <brad.king@kitware.com> | 2023-03-03 14:28:03 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-03-03 14:28:10 (GMT) |
commit | 0a9945cb8d6c1568d7a120eaaf0b02b8d078ecbf (patch) | |
tree | abd3540616c61b287d27d8fa6b3bf946ced553cd | |
parent | 77cf8d24ab8b2d468a7023339926bd6d1b7ce026 (diff) | |
parent | 442170a5e777d75ca3e6d388e3999055398d4734 (diff) | |
download | CMake-0a9945cb8d6c1568d7a120eaaf0b02b8d078ecbf.zip CMake-0a9945cb8d6c1568d7a120eaaf0b02b8d078ecbf.tar.gz CMake-0a9945cb8d6c1568d7a120eaaf0b02b8d078ecbf.tar.bz2 |
Merge topic 'DxxxxWarnings'
442170a5e7 cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx)
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8277
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index 73e7ef2..f5b7587 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -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. |