You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/cmake/files/cmake-3.18.0-filter_distcc_...

18 lines
842 B

https://bugs.gentoo.org/691544
Patch-by: Felix W. <felix.wischke@gmail.com>
Forward-ported from 3.16.5 to 3.18.0
--- cmake-3.18.0/Source/Checks/cm_cxx_features.cmake
+++ cmake-3.18.0/Source/Checks/cm_cxx_features.cmake
@@ -36,6 +36,8 @@
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)