From 3363d71888532299d6cba5377573727c7ee40d77 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 16 Oct 2023 15:54:44 +0200 Subject: [PATCH] Build: Fix handling of (s)ccache support So it also works when building individual projects like cdbext Change-Id: Ibb9cac77146a9f19cbbe22f2c7257b951f38f3fc Reviewed-by: Cristian Adam Reviewed-by: Qt CI Bot --- src/libs/qtcreatorcdbext/CMakeLists.txt | 1 + src/tools/qml2puppet/CMakeLists.txt | 1 + src/tools/sdktool/CMakeLists.txt | 1 + src/tools/wininterrupt/CMakeLists.txt | 1 + tests/auto/debugger/CMakeLists.txt | 1 + 5 files changed, 5 insertions(+) diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt index 8c95cb400b8..07a5493de34 100644 --- a/src/libs/qtcreatorcdbext/CMakeLists.txt +++ b/src/libs/qtcreatorcdbext/CMakeLists.txt @@ -12,6 +12,7 @@ if (NOT QT_CREATOR_API_DEFINED) # standalone build include(QtCreatorIDEBranding) include(QtCreatorAPI) + qtc_handle_compiler_cache_support() endif() if (NOT WIN32 OR NOT MSVC) diff --git a/src/tools/qml2puppet/CMakeLists.txt b/src/tools/qml2puppet/CMakeLists.txt index 2ffebbc59db..9244a9454db 100644 --- a/src/tools/qml2puppet/CMakeLists.txt +++ b/src/tools/qml2puppet/CMakeLists.txt @@ -16,6 +16,7 @@ if (NOT QT_CREATOR_API_DEFINED) set(DESTINATION DESTINATION .) include(QtCreatorIDEBranding) include(QtCreatorAPI) + qtc_handle_compiler_cache_support() find_package(Qt6 COMPONENTS Concurrent Core Gui Network PrintSupport Qml Quick Sql Widgets Xml diff --git a/src/tools/sdktool/CMakeLists.txt b/src/tools/sdktool/CMakeLists.txt index 937aa04087a..19b8571f562 100644 --- a/src/tools/sdktool/CMakeLists.txt +++ b/src/tools/sdktool/CMakeLists.txt @@ -16,6 +16,7 @@ if (NOT QT_CREATOR_API_DEFINED) set(DESTINATION DESTINATION .) include(QtCreatorIDEBranding) include(QtCreatorAPI) + qtc_handle_compiler_cache_support() find_package(QT NAMES Qt6 Qt5 COMPONENTS Core diff --git a/src/tools/wininterrupt/CMakeLists.txt b/src/tools/wininterrupt/CMakeLists.txt index 9dd3a658d7c..ee40ff769b8 100644 --- a/src/tools/wininterrupt/CMakeLists.txt +++ b/src/tools/wininterrupt/CMakeLists.txt @@ -12,6 +12,7 @@ if (NOT QT_CREATOR_API_DEFINED) # standalone build include(QtCreatorIDEBranding) include(QtCreatorAPI) + qtc_handle_compiler_cache_support() endif() if (NOT WIN32) diff --git a/tests/auto/debugger/CMakeLists.txt b/tests/auto/debugger/CMakeLists.txt index 4abe98c05e8..2f06a6b2fc7 100644 --- a/tests/auto/debugger/CMakeLists.txt +++ b/tests/auto/debugger/CMakeLists.txt @@ -24,6 +24,7 @@ if (NOT QT_CREATOR_API_DEFINED) include(QtCreatorIDEBranding) include(QtCreatorAPI) + qtc_handle_compiler_cache_support() set(WITH_TESTS ON)