diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-10 19:58:13 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-10 20:14:32 -0200 |
commit | a70b766aa905c608f05ff192e8f14420f26cffa9 (patch) | |
tree | b17b98188c56392e3f363165d46d4b21bfd659ee | |
parent | e78792932d60bc0516fdd67263a609d571c119f7 (diff) |
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>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | icecc.cmake | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ea45937e..e6ef3f46b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,5 @@ +include(icecc.cmake) # this must be the first line! + project(pyside) cmake_minimum_required(VERSION 2.6) diff --git a/icecc.cmake b/icecc.cmake new file mode 100644 index 000000000..b2bf071aa --- /dev/null +++ b/icecc.cmake @@ -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) |