diff options
author | Brad King <brad.king@kitware.com> | 2019-03-08 12:31:28 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-03-08 12:31:36 (GMT) |
commit | b7a861647ec5584e23d3730edddf18ad45a2e465 (patch) | |
tree | 5b5416726c75459e80be7f591fb5ff2790bdc647 /Source/Checks | |
parent | b90cab5bff63902818cc3cc6268a7f96157c1381 (diff) | |
parent | 4ca5a815f2dfe9e1116cc2ccd5ddb56d0d00d12e (diff) | |
download | CMake-b7a861647ec5584e23d3730edddf18ad45a2e465.zip CMake-b7a861647ec5584e23d3730edddf18ad45a2e465.tar.gz CMake-b7a861647ec5584e23d3730edddf18ad45a2e465.tar.bz2 |
Merge topic 'cxx-checks-warning-match'
4ca5a815f2 C++ feature checks: Match warnings more strictly
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3075
Diffstat (limited to 'Source/Checks')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index d941c16..fb68ed7 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -27,7 +27,7 @@ function(cm_check_cxx_feature name) # Filter out xcodebuild warnings. string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}") # If using the feature causes warnings, treat it as broken/unavailable. - if(check_output MATCHES "[Ww]arning") + if(check_output MATCHES "(^|[ :])[Ww][Aa][Rr][Nn][Ii][Nn][Gg]") set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE) endif() if(CMake_HAVE_CXX_${FEATURE}) |