diff options
author | Brad King <brad.king@kitware.com> | 2018-11-26 12:50:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-26 12:50:51 (GMT) |
commit | af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9 (patch) | |
tree | 65aaad8d882c8d4d7a5a6bdb1cf2508d25f4f328 /Source | |
parent | 6786345210994063030ad82f7ece66a461bbfb76 (diff) | |
parent | 2ca89b5a6969ce6b0bca44abf02a072e28e5c1cd (diff) | |
download | CMake-af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9.zip CMake-af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9.tar.gz CMake-af2960e0fdd8be7cd3ab8b2b894e18a0d3056db9.tar.bz2 |
Merge topic 'cxx-checks-tolerate-sprintf-warning'
2ca89b5a69 C++ feature checks: Filter out libstdc++ sprintf warnings
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2643
Diffstat (limited to 'Source')
-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 1b57fd8..d941c16 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 other warnings unrelated to feature checks. + 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}") # If using the feature causes warnings, treat it as broken/unavailable. |