summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.cmake6
-rwxr-xr-xutil/cmake/configurejson2cmake.py5
2 files changed, 10 insertions, 1 deletions
diff --git a/configure.cmake b/configure.cmake
index f67dd96b6e..88c32e2637 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -781,6 +781,12 @@ qt_feature("compile_examples"
AUTODETECT NOT WASM
)
qt_feature_config("compile_examples" QMAKE_PRIVATE_CONFIG)
+qt_feature("ccache"
+ LABEL "Using ccache"
+ AUTODETECT 1
+ CONDITION QT_USE_CCACHE
+)
+qt_feature_config("ccache" QMAKE_PRIVATE_CONFIG)
qt_feature("dlopen" PRIVATE
LABEL "dlopen()"
CONDITION UNIX
diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py
index 90bd3e2af6..e2ab8864f0 100755
--- a/util/cmake/configurejson2cmake.py
+++ b/util/cmake/configurejson2cmake.py
@@ -819,7 +819,10 @@ def get_feature_mapping():
"alloc_malloc_h": None,
"alloc_stdlib_h": None,
"build_all": None,
- "ccache": None,
+ "ccache": {
+ "autoDetect": "1",
+ "condition": "QT_USE_CCACHE"
+ },
"compiler-flags": None,
"cross_compile": {"condition": "CMAKE_CROSSCOMPILING"},
"debug_and_release": {