summaryrefslogtreecommitdiffstats
path: root/src/platformsupport/fontdatabases
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-05-07 20:20:39 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-05-08 10:54:15 +0000
commit9d96c8da78125531c64916291e03867e752a97af (patch)
tree99a5b4426268c940e42c71b2b65e1fcb80477020 /src/platformsupport/fontdatabases
parente8bb67330164e3ed4baf87b4b0a46d584fe3b738 (diff)
Fix freetype target not being found when using vcpkg
vcpkg and upstream CMake find module define different target names for the same package. To circumvent this, create our own Wrap find module, and link against it. Inside the find module, try both target names. Change-Id: Iba488bce0fb410ddb83f6414244f86ad367de72b Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/platformsupport/fontdatabases')
-rw-r--r--src/platformsupport/fontdatabases/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platformsupport/fontdatabases/CMakeLists.txt b/src/platformsupport/fontdatabases/CMakeLists.txt
index 140882691c..6ffc2fb2f3 100644
--- a/src/platformsupport/fontdatabases/CMakeLists.txt
+++ b/src/platformsupport/fontdatabases/CMakeLists.txt
@@ -1,6 +1,6 @@
# Generated from fontdatabases.pro.
-qt_find_package(Freetype) # special case
+qt_find_package(WrapFreetype) # special case
qt_find_package(Fontconfig) # special case
#####################################################################
@@ -54,7 +54,7 @@ extend_target(FontDatabaseSupport CONDITION QT_FEATURE_freetype
freetype/qfontengine_ft.cpp freetype/qfontengine_ft_p.h
freetype/qfreetypefontdatabase.cpp freetype/qfreetypefontdatabase_p.h
LIBRARIES
- Freetype::Freetype
+ WrapFreetype::WrapFreetype
)
extend_target(FontDatabaseSupport CONDITION UNIX