mirror of https://github.com/qt/qtcoap.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: I6330c79688c3b5fe566165ffb90658092a8c96b1 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
cc2d8bb958
commit
6f5de771d9
|
@ -11,7 +11,13 @@ project(QtCoap
|
||||||
LANGUAGES CXX
|
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)
|
find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Gui Widgets Quick Qml)
|
||||||
|
|
||||||
if(NOT QT_FEATURE_udpsocket)
|
if(NOT QT_FEATURE_udpsocket)
|
||||||
|
@ -19,6 +25,4 @@ if(NOT QT_FEATURE_udpsocket)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
qt_internal_project_setup()
|
|
||||||
|
|
||||||
qt_build_repo()
|
qt_build_repo()
|
||||||
|
|
Loading…
Reference in New Issue