From 0068224fdd7569f02dffe9fd8de2e6ce0c7abc28 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Sat, 3 Jun 2017 08:38:31 +0200 Subject: C++ feature checks: check output for '[Ww]arning' --- Source/Checks/cm_cxx_features.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- cgit v0.12