summaryrefslogtreecommitdiffstats
path: root/cmake/Macros/icecc.cmake
diff options
context:
space:
mode:
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 0000000..b2bf071
--- /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)