summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-08 13:28:56 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-08 13:29:02 (GMT)
commit8f2ba9a3fcfc87b2d919badf0d02d507bfb75ab1 (patch)
tree22651bc7a9f0036e252f3529f250b35ebec1f962 /Source
parent20d140c8942c141e8f6aa8ef724da6466b45440e (diff)
parentb756ec8a46761188e3a6b00aba06fd997a3cdf3a (diff)
downloadCMake-8f2ba9a3fcfc87b2d919badf0d02d507bfb75ab1.zip
CMake-8f2ba9a3fcfc87b2d919badf0d02d507bfb75ab1.tar.gz
CMake-8f2ba9a3fcfc87b2d919badf0d02d507bfb75ab1.tar.bz2
Merge topic 'ignore_MSB_warnings'
b756ec8a46 cm_cxx_features: Filter out MSBXXXX warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5348
Diffstat (limited to 'Source')
-rw-r--r--Source/Checks/cm_cxx_features.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 5c1593d..663d89a 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -36,6 +36,8 @@ function(cm_check_cxx_feature name)
set(check_output "${OUTPUT}")
# Filter out MSBuild output that looks like a warning.
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 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.