[harfbuzz] Fix include path (#12871)

This commit is contained in:
Phoebe 2020-08-18 17:03:36 -07:00 committed by GitHub
parent 547af512d0
commit 7ad163e476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Source: harfbuzz
Version: 2.6.6
Port-Version: 1
Description: HarfBuzz OpenType text shaping engine
Homepage: https://github.com/behdad/harfbuzz
Build-Depends: freetype[core], ragel, gettext (osx)

View File

@ -0,0 +1,12 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c4dc524..bfd15ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -431,6 +431,7 @@ endif ()
## Define harfbuzz library
add_library(harfbuzz ${project_sources} ${project_extra_sources} ${project_headers})
+target_include_directories(harfbuzz PUBLIC $<INSTALL_INTERFACE:include/harfbuzz>)
target_link_libraries(harfbuzz ${THIRD_PARTY_LIBS})

View File

@ -12,6 +12,7 @@ vcpkg_from_github(
find-package-freetype-2.patch
# This patch is required for propagating the full list of dependencies from glib
glib-cmake.patch
fix_include.patch
)
file(READ ${SOURCE_PATH}/CMakeLists.txt _contents)