diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-02 11:32:03 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-12-02 11:32:03 -0200 |
commit | a84378bff4a45aaba839855d6f9151898adbee52 (patch) | |
tree | 7de6241158a9de66ab57c75b4d62cc277395f0e2 /icecc.cmake | |
parent | 3c433205280de89d4d7709dfb29426492fdbdbe6 (diff) |
Add support for distributed compilation using icecc.
Diffstat (limited to 'icecc.cmake')
-rw-r--r-- | icecc.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
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) |