aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/icecc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/icecc.cmake')
-rw-r--r--sources/shiboken6/icecc.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/sources/shiboken6/icecc.cmake b/sources/shiboken6/icecc.cmake
new file mode 100644
index 000000000..fa8d3b7cf
--- /dev/null
+++ b/sources/shiboken6/icecc.cmake
@@ -0,0 +1,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)