aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/icecc.cmake
blob: fa8d3b7cfaa078d9945402594a7f446c2a3e4a74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Copyright (C) 2023 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

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)