summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-06-04 12:55:20 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-06-04 12:55:35 (GMT)
commit42a4185643f2e9c16accd8286d7741e90493c2f4 (patch)
tree2df5da488dc48a123b9b2b68b922ee138186ae48
parent601fab1f05b866a2d50714170b821e7d0c8180c8 (diff)
parentc9e30d75d2c58e9e0515e88d50391404da5c1693 (diff)
downloadCMake-42a4185643f2e9c16accd8286d7741e90493c2f4.zip
CMake-42a4185643f2e9c16accd8286d7741e90493c2f4.tar.gz
CMake-42a4185643f2e9c16accd8286d7741e90493c2f4.tar.bz2
Merge topic 'cxx-checks-distcc'
c9e30d75d2 cm_cxx_features: Ignore distcc warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9574
-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 02ebaa6..8727543 100644
--- a/Source/Checks/cm_cxx_features.cmake
+++ b/Source/Checks/cm_cxx_features.cmake
@@ -57,6 +57,8 @@ function(cm_check_cxx_feature name)
string(REGEX REPLACE "[^\n]*icpc: command line warning #10121: overriding [^\n]*" "" check_output "${check_output}")
# Filter out ld warnings.
string(REGEX REPLACE "[^\n]*ld: warning: [^\n]*" "" check_output "${check_output}")
+ # Filter out distcc.
+ string(REGEX REPLACE "[^\n]*distcc\\[[0-9]+\\][^\n]*[Ww]arning:[^\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)