Skip to content

Commit 869b35c

Browse files
committed
Add support for distributed compilation using icecc.
Reviewer: Luciano Wolf <[email protected]> Renato Araújo <[email protected]>
1 parent 7ba853b commit 869b35c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include(icecc.cmake)
12
project(apiextractor)
23

34
cmake_minimum_required(VERSION 2.6)

icecc.cmake

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include (CMakeForceCompiler)
2+
option(ENABLE_ICECC "Enable icecc checking, for distributed compilation")
3+
if (ENABLE_ICECC)
4+
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

Comments
 (0)