Add the use of the qt_internal_project_setup function

The function sets the required CMake variables and policies.

Pick-to: 6.5
Task-number: QTBUG-112685
Change-Id: Ie96433994aab01d4aea3942ca860f515027c762f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Alexey Edelev
2023-05-03 11:32:28 +02:00
parent d0b29bf223
commit d5bd26fdd0
+1
View File
@@ -13,6 +13,7 @@ project(QtSvg
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core)
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui Widgets Xml)
qt_internal_project_setup()
# Needed for examples to configure properly when not using ExternalProject and when
# Qt is configured with a bundled zlib.