From 3eed6d76b7ce280674caab448682a2e4837cb4d7 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Fri, 17 Apr 2020 08:56:26 +0200 Subject: CMake: Port the 'ccache' feature This maps to the CMake variable QT_USE_CCACHE. Change-Id: I3258027301284d907f6ecde6c65d2c0dde8f0a11 Reviewed-by: Alexandru Croitor --- util/cmake/configurejson2cmake.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'util') 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": { -- cgit v1.2.3