We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ba853b commit 869b35cCopy full SHA for 869b35c
CMakeLists.txt
@@ -1,3 +1,4 @@
1
+include(icecc.cmake)
2
project(apiextractor)
3
4
cmake_minimum_required(VERSION 2.6)
icecc.cmake
@@ -0,0 +1,11 @@
+include (CMakeForceCompiler)
+option(ENABLE_ICECC "Enable icecc checking, for distributed compilation")
+if (ENABLE_ICECC)
+ find_program(ICECC icecc)
5
+ if (ICECC)
6
+ message(STATUS "icecc found! Distributed compilation for all!! huhuhu.")
7
+ cmake_force_cxx_compiler(${ICECC} icecc)
8
+ else(ICECC)
9
+ message(FATAL_ERROR "icecc NOT found! re-run cmake without -DENABLE_ICECC")
10
+ endif(ICECC)
11
+endif(ENABLE_ICECC)
0 commit comments