aboutsummaryrefslogtreecommitdiffstats
path: root/icecc.cmake
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:11:26 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:09 -0300
commit869b35c10ef573771532c6f2cb017dbfab315e61 (patch)
tree268c076852ebeef883d964b5169c8a1a5611241f /icecc.cmake
parent7ba853bece5756a361b6ed8a69d3dc2f43a0ac75 (diff)
Add support for distributed compilation using icecc.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Araújo <renato.filho@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 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)