mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
cm_cxx_features: Ignore ninja warnings
Future changes to ninja may make harmless warnings more likely. Filter them out from compiler feature checks.
This commit is contained in:
@@ -36,6 +36,8 @@ function(cm_check_cxx_feature name)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
set(check_output "${OUTPUT}")
|
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.
|
# Filter out MSBuild output that looks like a warning.
|
||||||
string(REGEX REPLACE " +0 Warning\\(s\\)" "" check_output "${check_output}")
|
string(REGEX REPLACE " +0 Warning\\(s\\)" "" check_output "${check_output}")
|
||||||
# Filter out MSBuild output that looks like a warning.
|
# Filter out MSBuild output that looks like a warning.
|
||||||
|
|||||||
Reference in New Issue
Block a user