summaryrefslogtreecommitdiffstats
path: root/Source/Checks
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2024-08-13 10:23:47 (GMT)
committerMichael Pratt <mcpratt@pm.me>2024-08-14 21:27:32 (GMT)
commitd3baf456c25baace79577d92c26e8c9e8b5353fa (patch)
treefa8ecc583744b75e2abdce06e25fedccd7cdf532 /Source/Checks
parent8733dcd11588f2d9eb0bddc8af8a6db7a2e9eba8 (diff)
downloadCMake-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.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 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.