Using distcc
is currently broken for two reasons
GaudiProjectConfig.cmake
is executed multiple times and the launch rule is prepended multiple timesHere (in the first commit) I fix the generation of the compile rule by
GAUDI_RULE_LAUNCH_.*
). GAUDI_RULE_LAUNCH_.*_ENV
, such that using GAUDI_USE_CTEST_LAUNCHERS
can work together with distcc
.In the second commit, I add support for another distributed compiler, icecream.
The multiple execution of GaudiProjectConfig.cmake
has to be fixed separately, either at the source or with an include guard like
if(GaudiProject_FOUND)
return()
endif()
PS. This may invalidate ccaches as right now the compiler is prefixed with .../ccache .../ccache .../ccache
and this MR removes the triplication.