Build: Fix handling of (s)ccache support

So it also works when building individual projects like cdbext

Change-Id: Ibb9cac77146a9f19cbbe22f2c7257b951f38f3fc
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2023-10-16 15:54:44 +02:00
parent 67ad0cf556
commit 3363d71888
5 changed files with 5 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ if (NOT QT_CREATOR_API_DEFINED)
# standalone build # standalone build
include(QtCreatorIDEBranding) include(QtCreatorIDEBranding)
include(QtCreatorAPI) include(QtCreatorAPI)
qtc_handle_compiler_cache_support()
endif() endif()
if (NOT WIN32 OR NOT MSVC) if (NOT WIN32 OR NOT MSVC)

View File

@@ -16,6 +16,7 @@ if (NOT QT_CREATOR_API_DEFINED)
set(DESTINATION DESTINATION .) set(DESTINATION DESTINATION .)
include(QtCreatorIDEBranding) include(QtCreatorIDEBranding)
include(QtCreatorAPI) include(QtCreatorAPI)
qtc_handle_compiler_cache_support()
find_package(Qt6 find_package(Qt6
COMPONENTS Concurrent Core Gui Network PrintSupport Qml Quick Sql Widgets Xml COMPONENTS Concurrent Core Gui Network PrintSupport Qml Quick Sql Widgets Xml

View File

@@ -16,6 +16,7 @@ if (NOT QT_CREATOR_API_DEFINED)
set(DESTINATION DESTINATION .) set(DESTINATION DESTINATION .)
include(QtCreatorIDEBranding) include(QtCreatorIDEBranding)
include(QtCreatorAPI) include(QtCreatorAPI)
qtc_handle_compiler_cache_support()
find_package(QT NAMES Qt6 Qt5 find_package(QT NAMES Qt6 Qt5
COMPONENTS Core COMPONENTS Core

View File

@@ -12,6 +12,7 @@ if (NOT QT_CREATOR_API_DEFINED)
# standalone build # standalone build
include(QtCreatorIDEBranding) include(QtCreatorIDEBranding)
include(QtCreatorAPI) include(QtCreatorAPI)
qtc_handle_compiler_cache_support()
endif() endif()
if (NOT WIN32) if (NOT WIN32)

View File

@@ -24,6 +24,7 @@ if (NOT QT_CREATOR_API_DEFINED)
include(QtCreatorIDEBranding) include(QtCreatorIDEBranding)
include(QtCreatorAPI) include(QtCreatorAPI)
qtc_handle_compiler_cache_support()
set(WITH_TESTS ON) set(WITH_TESTS ON)