mirror of https://github.com/qt/qtdoc.git
Move `qt_internal_project_setup` as early as possible
The earliest we can move this is right after `BuildInternals`. This allows us to add function calls before navigating the `find_package` tree of the dependents. Task-number: QTBUG-135233 Change-Id: Icfb9bbdf1d94a4938c8ea4c43241768ccbf89c18 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
303c85a782
commit
33f884275c
|
@ -13,7 +13,13 @@ project(QtDoc # special case
|
|||
LANGUAGES CXX C
|
||||
)
|
||||
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals)
|
||||
|
||||
# This should be called as early as possible, just after find_package(BuildInternals) where it is
|
||||
# defined.
|
||||
qt_internal_project_setup()
|
||||
|
||||
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS Core)
|
||||
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG
|
||||
OPTIONAL_COMPONENTS
|
||||
Gui
|
||||
|
@ -42,7 +48,6 @@ find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG
|
|||
ExamplesAssetDownloaderPrivate
|
||||
Linguist
|
||||
)
|
||||
qt_internal_project_setup()
|
||||
|
||||
qt_build_repo_begin()
|
||||
qt_build_repo_impl_find_package_tests()
|
||||
|
|
Loading…
Reference in New Issue