1
include (CMakeForceCompiler)
2
option(ENABLE_ICECC "Enable icecc checking, for distributed compilation")
4
find_program(ICECC icecc)
6
message(STATUS "icecc found! Distributed compilation for all!! huhuhu.")
7
cmake_force_cxx_compiler(${ICECC} icecc)
9
message(FATAL_ERROR "icecc NOT found! re-run cmake without -DENABLE_ICECC")