blob: b2bf071aa8d207e8c3deee244ff1dc8b490fbb9c (
plain)
1
2
3
4
5
6
7
8
9
10
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)
|