summaryrefslogtreecommitdiffstats
path: root/icecc.cmake
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-11-10 19:58:13 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-11-10 20:14:32 -0200
commita70b766aa905c608f05ff192e8f14420f26cffa9 (patch)
treeb17b98188c56392e3f363165d46d4b21bfd659ee /icecc.cmake
parente78792932d60bc0516fdd67263a609d571c119f7 (diff)
downloadpyside-a70b766aa905c608f05ff192e8f14420f26cffa9.tar.gz
pyside-a70b766aa905c608f05ff192e8f14420f26cffa9.tar.xz
pyside-a70b766aa905c608f05ff192e8f14420f26cffa9.zip
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>
Diffstat (limited to 'icecc.cmake')
-rw-r--r--icecc.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/icecc.cmake b/icecc.cmake
new file mode 100644
index 0000000..b2bf071
--- /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)