File: icecc.cmake

package info (click to toggle)
shiboken 1.2.2-5.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,268 kB
  • sloc: cpp: 50,923; python: 5,950; xml: 2,354; ansic: 136; makefile: 134
file content (11 lines) | stat: -rw-r--r-- 433 bytes parent folder | download | duplicates (26)
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)