~ubuntu-branches/ubuntu/oneiric/pyside/oneiric

« back to all changes in this revision

Viewing changes to icecc.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Didier Raboud
  • Date: 2010-10-19 22:52:14 UTC
  • mfrom: (1.1.4 upstream)
  • mto: (13.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20101019225214-0s9fbpz12x3962qa
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)