summaryrefslogtreecommitdiffstats
path: root/Source/Checks/cm_cxx_features.cmake
diff options
context:
space:
mode:
authorMarcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>2019-11-25 20:14:57 (GMT)
committerMarcus Calhoun-Lopez <marcuscalhounlopez@gmail.com>2019-11-25 20:14:57 (GMT)
commitee28580c33cbc7100b60d86ca4bc1702bde14930 (patch)
treeb5627a3e50bc45a3250a3119abf9269e1cfb3f0b /Source/Checks/cm_cxx_features.cmake
parente17934c1834ef249107ba5fd46d5e6c2c9017534 (diff)
downloadCMake-ee28580c33cbc7100b60d86ca4bc1702bde14930.zip
CMake-ee28580c33cbc7100b60d86ca4bc1702bde14930.tar.gz
CMake-ee28580c33cbc7100b60d86ca4bc1702bde14930.tar.bz2
C++ feature checks: Ignore linker warnings
Diffstat (limited to 'Source/Checks/cm_cxx_features.cmake')
-rw-r--r--Source/Checks/cm_cxx_features.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Checks/cm_cxx_features.cmake b/Source/Checks/cm_cxx_features.cmake
index de8a77a..3b00dfb 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -30,6 +30,8 @@ function(cm_check_cxx_feature name)
string(REGEX REPLACE "[^\n]*warning:[^\n]*sprintf\\(\\) is often misused, please use snprintf[^\n]*" "" check_output "${check_output}")
# Filter out xcodebuild warnings.
string(REGEX REPLACE "[^\n]* xcodebuild\\[[0-9]*:[0-9]*\\] warning: [^\n]*" "" check_output "${check_output}")
+ # Filter out ld warnings.
+ string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
# If using the feature causes warnings, treat it as broken/unavailable.
if(check_output MATCHES "(^|[ :])[Ww][Aa][Rr][Nn][Ii][Nn][Gg]")
set(CMake_HAVE_CXX_${FEATURE} OFF CACHE INTERNAL "TRY_COMPILE" FORCE)