Skip to content

Commit

Permalink
Add support for distributed compilation using icecc.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Dec 2, 2009
1 parent 3c43320 commit a84378b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include(icecc.cmake)
project(shiboken)

cmake_minimum_required(VERSION 2.6)
Expand Down
11 changes: 11 additions & 0 deletions icecc.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit a84378b

Please sign in to comment.