mirror of
https://github.com/reactos/CMake.git
synced 2024-12-17 00:26:42 +00:00
Merge topic 'fix-vs2017-featuredetect'
f4ce3962
C++ feature checks: Do not match "0 Warning(s)" as a warning
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !930
This commit is contained in:
commit
5b1d0aeffe
@ -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 "[Ww]arning")
|
||||
if(OUTPUT MATCHES "[Ww]arning" AND NOT OUTPUT MATCHES "0 Warning")
|
||||
set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)
|
||||
endif()
|
||||
if(CMake_HAVE_CXX_${FEATURE})
|
||||
|
Loading…
Reference in New Issue
Block a user