diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-03 06:38:31 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2017-06-03 06:38:51 (GMT) |
commit | 0068224fdd7569f02dffe9fd8de2e6ce0c7abc28 (patch) | |
tree | 28b3ca6abd0bb774fa5892efe65821a18e90f940 | |
parent | 3216c2178cfcc75d48f383a76ccff4aa052b5fdc (diff) | |
download | CMake-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.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 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}) |