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
|
||||
include(QtCreatorIDEBranding)
|
||||
include(QtCreatorAPI)
|
||||
qtc_handle_compiler_cache_support()
|
||||
endif()
|
||||
|
||||
if (NOT WIN32 OR NOT MSVC)
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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)
|
||||
|
@@ -24,6 +24,7 @@ if (NOT QT_CREATOR_API_DEFINED)
|
||||
|
||||
include(QtCreatorIDEBranding)
|
||||
include(QtCreatorAPI)
|
||||
qtc_handle_compiler_cache_support()
|
||||
|
||||
set(WITH_TESTS ON)
|
||||
|
||||
|
Reference in New Issue
Block a user