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: I6330c79688c3b5fe566165ffb90658092a8c96b1
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristian Le 2025-06-20 11:48:30 +02:00
parent cc2d8bb958
commit 6f5de771d9
1 changed files with 7 additions and 3 deletions

View File

@ -11,7 +11,13 @@ project(QtCoap
LANGUAGES CXX
)
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core Network)
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 Network)
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets Quick Qml)
if(NOT QT_FEATURE_udpsocket)
@ -19,6 +25,4 @@ if(NOT QT_FEATURE_udpsocket)
return()
endif()
qt_internal_project_setup()
qt_build_repo()