Поддержка distcc
This commit is contained in:
parent
957f4841fb
commit
98e9784863
@ -25,6 +25,7 @@ include(CMLibGlobalVariables)
|
||||
include(CMLibLSBInfo)
|
||||
include(CMLibCompiler)
|
||||
include(CMLibCompilerFlags)
|
||||
include(CMLibDistCC)
|
||||
include(CMLibCompilerFeaturesHPPGenerate)
|
||||
include(CMLibFlagRemove)
|
||||
include(CMLibCommonTargetProperties)
|
||||
|
10
CMLibDistCC.cmake
Normal file
10
CMLibDistCC.cmake
Normal file
@ -0,0 +1,10 @@
|
||||
find_program(DISTCC_EXECUTABLE distcc)
|
||||
mark_as_advanced(DISTCC_EXECUTABLE)
|
||||
if(DISTCC_EXECUTABLE)
|
||||
foreach(LANG C CXX)
|
||||
if(NOT DEFINED CMAKE_${LANG}_COMPILER_LAUNCHER AND NOT CMAKE_${LANG}_COMPILER MATCHES ".*/distcc$")
|
||||
message(STATUS "Enabling distcc for ${LANG}")
|
||||
set(CMAKE_${LANG}_COMPILER_LAUNCHER ${DISTCC_EXECUTABLE} CACHE STRING "")
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
Loading…
Reference in New Issue
Block a user