diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2018-06-18 12:17:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-06-19 14:56:50 (GMT) |
commit | 057ecb8f6fe8178d8d50fc9dbf04d1d6027ddc42 (patch) | |
tree | 64e636b665b899a673a6d123682ad3a79846fd8d /Source/Checks/cm_cxx_features.cmake | |
parent | 985d3a162ca7edcb26f35a06ca4754179335c7d3 (diff) | |
download | CMake-057ecb8f6fe8178d8d50fc9dbf04d1d6027ddc42.zip CMake-057ecb8f6fe8178d8d50fc9dbf04d1d6027ddc42.tar.gz CMake-057ecb8f6fe8178d8d50fc9dbf04d1d6027ddc42.tar.bz2 |
C++ feature checks: Ignore Xcode warnings
Diffstat (limited to 'Source/Checks/cm_cxx_features.cmake')
-rw-r--r-- | Source/Checks/cm_cxx_features.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake index 2a1abba..1b57fd8 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -22,6 +22,8 @@ function(cm_check_cxx_feature name) # Filter out warnings caused by local configuration. string(REGEX REPLACE "[^\n]*warning:[^\n]*directory not found for option[^\n]*" "" check_output "${check_output}") string(REGEX REPLACE "[^\n]*warning:[^\n]*object file compiled with -mlong-branch which is no longer needed[^\n]*" "" check_output "${check_output}") + # Filter out xcodebuild warnings. + string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}") # If using the feature causes warnings, treat it as broken/unavailable. if(check_output MATCHES "[Ww]arning") set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE) |