mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
C++ feature checks: check output for '[Ww]arning'
This commit is contained in:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user