diff options
author | Michael Pratt <mcpratt@pm.me> | 2024-08-13 10:23:47 (GMT) |
---|---|---|
committer | Michael Pratt <mcpratt@pm.me> | 2024-08-14 21:27:32 (GMT) |
commit | d3baf456c25baace79577d92c26e8c9e8b5353fa (patch) | |
tree | fa8ecc583744b75e2abdce06e25fedccd7cdf532 /Source/Checks | |
parent | 8733dcd11588f2d9eb0bddc8af8a6db7a2e9eba8 (diff) | |
download | CMake-d3baf456c25baace79577d92c26e8c9e8b5353fa.zip CMake-d3baf456c25baace79577d92c26e8c9e8b5353fa.tar.gz CMake-d3baf456c25baace79577d92c26e8c9e8b5353fa.tar.bz2 |
cm_cxx_features: Ignore ninja warnings
Future changes to ninja may make harmless warnings more likely.
Filter them out from compiler feature checks.
Diffstat (limited to 'Source/Checks')
-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 0a03f3a..0ba0c22 100644 --- a/Source/Checks/cm_cxx_features.cmake +++ b/Source/Checks/cm_cxx_features.cmake @@ -36,6 +36,8 @@ function(cm_check_cxx_feature name) ) endif() set(check_output "${OUTPUT}") + # Filter out ninja warnings. + string(REGEX REPLACE "[^\n]*ninja: warning: [^\n]*" "" check_output "${check_output}") # Filter out MSBuild output that looks like a warning. string(REGEX REPLACE " +0 Warning\\(s\\)" "" check_output "${check_output}") # Filter out MSBuild output that looks like a warning. |