diff options
author | Cristian Le <[email protected]> | 2025-03-28 17:28:28 +0100 |
---|---|---|
committer | Cristian Le <[email protected]> | 2025-05-30 15:22:03 +0200 |
commit | 33f884275cc11331203ef9ca0a32b4b4717abafb (patch) | |
tree | db18d4199298ea65d1c137681a2a63616532a6cb | |
parent | 303c85a782dcc952dd96d4de0eff73f878c0f09d (diff) |
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 <[email protected]>
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ca9339b38..0e760a945 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() |