vcpkg/ports/qtimageformats/no_target_promotion_latest.patch
Alexander Neumann 9db088e2b0
[Qt6] update to 6.3.0 (#23015)
* [Qt6] Latest feature to 6.3.0

* move failing patch to !latest

* remove debug/include

* more fixes

* more fixes

* more fixes

* give me the binary names making it fail.

* add new binary

* fix qtimageformats

* fix regressions?

* retry qtopcua

* fix regressions

* correctly guard python

* more fixes

* add vcpkg-get-python-packages

* hack webengine build to see if it will work.

* move hack to a different position

* noramlize path

* update refs to 6.3 release

* fix details

* qtwebengine back to fail on baseline

* comment long path stuff out since qtwebengine cannot be build with VS 2022 any way

* update version to 6.3.0 in manifest files

* version stuff

Co-authored-by: Alexander Neumann <you@example.com>
2022-04-21 11:42:59 -07:00

22 lines
769 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7fdd7ddbd..f189c472c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,6 +9,15 @@ project(QtImageFormats # special case
HOMEPAGE_URL "https://qt.io/"
LANGUAGES CXX C
)
-
+find_package(Threads)
+set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
+find_package(ZLIB)
+if(TARGET ZLIB::ZLIB)
+ set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
+endif()
+find_package(JPEG)
+if(TARGET JPEG::JPEG)
+ set_property(TARGET JPEG::JPEG PROPERTY _qt_no_promote_global TRUE)
+endif()
find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case
find_package(Qt6 ${PROJECT_VERSION} QUIET CONFIG OPTIONAL_COMPONENTS Gui) # special case