forked from qt-creator/qt-creator
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:
@@ -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)
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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)
|
||||||
|
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user