aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Macros/icecc.cmake
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-07 12:15:11 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-07 14:47:30 -0300
commit3c7f55855b45168818ef6fc5e58b30f1c7e4d133 (patch)
tree3c0774c6c9703cb3a59da476ed2c0c26e7f8f921 /cmake/Macros/icecc.cmake
parent24cbdd8dfa3cd01184d0dae297c15547d4962293 (diff)
Moved cmake macros to a separeted file.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'cmake/Macros/icecc.cmake')
-rw-r--r--cmake/Macros/icecc.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/Macros/icecc.cmake b/cmake/Macros/icecc.cmake
new file mode 100644
index 000000000..b2bf071aa
--- /dev/null
+++ b/cmake/Macros/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)