From 869b35c10ef573771532c6f2cb017dbfab315e61 Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Tue, 31 Aug 2010 16:11:26 -0300 Subject: Add support for distributed compilation using icecc. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewer: Luciano Wolf Renato Araújo --- CMakeLists.txt | 1 + icecc.cmake | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 icecc.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e8c5c880..7f64e2c32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +include(icecc.cmake) project(apiextractor) cmake_minimum_required(VERSION 2.6) diff --git a/icecc.cmake b/icecc.cmake new file mode 100644 index 000000000..b2bf071aa --- /dev/null +++ b/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) -- cgit v1.2.3