Add support for distributed compilation using icecc.
To use it, just pass -DENABLE_ICECC=ON when running cmake. Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
e78792932d
commit
a70b766aa9
2 changed files with 13 additions and 0 deletions
11
icecc.cmake
Normal file
11
icecc.cmake
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
include (CMakeForceCompiler)
|
||||
option(ENABLE_ICECC "Enable icecc checking, for distributed compilation")
|
||||
if (ENABLE_ICECC)
|
||||
find_program(ICECC icecc)
|
||||
if (ICECC)
|
||||
message(STATUS "icecc found! Distributed compilation for all!! huhuhu.")
|
||||
cmake_force_cxx_compiler(${ICECC} icecc)
|
||||
else(ICECC)
|
||||
message(FATAL_ERROR "icecc NOT found! re-run cmake without -DENABLE_ICECC")
|
||||
endif(ICECC)
|
||||
endif(ENABLE_ICECC)
|
||||
Loading…
Add table
Add a link
Reference in a new issue