summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-03 06:38:31 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-06-03 06:38:51 (GMT)
commit0068224fdd7569f02dffe9fd8de2e6ce0c7abc28 (patch)
tree28b3ca6abd0bb774fa5892efe65821a18e90f940
parent3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff)
downloadCMake-0068224fdd7569f02dffe9fd8de2e6ce0c7abc28.zip
CMake-0068224fdd7569f02dffe9fd8de2e6ce0c7abc28.tar.gz
CMake-0068224fdd7569f02dffe9fd8de2e6ce0c7abc28.tar.bz2
C++ feature checks: check output for '[Ww]arning'
-rw-r--r--Source/Checks/cm_cxx_features.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index 458901e..76c823c 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -15,7 +15,7 @@ function(cm_check_cxx_feature name)
OUTPUT_VARIABLE OUTPUT
)
# If using the feature causes warnings, treat it as broken/unavailable.
- if(OUTPUT MATCHES "warning")
+ if(OUTPUT MATCHES "[Ww]arning")
set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)
endif()
if(CMake_HAVE_CXX_${FEATURE})