diff options
author | Dimitrios Apostolou <jimis@qt.io> | 2020-07-15 13:31:38 +0200 |
---|---|---|
committer | Dimitrios Apostolou <jimis@qt.io> | 2020-09-16 20:18:26 +0200 |
commit | bf075da8004718e6a7e8d3870b912e89cea8d08c (patch) | |
tree | 921cebddc67b1f9b2550dc2a6f0b3fd75d9cad53 /src/3rdparty | |
parent | b9c85d6b0e274bf0a6287cd56d9e3d7376b0d004 (diff) |
Include harfbuzz header files without harfbuzz/ parent directory
This is in accordance to the examples from harfbuzz docs:
https://harfbuzz.github.io/ch03s03.html
The fix is because `pkg-config --cflags harfbuzz` returns
the subdirectory as include path, for example:
-I /usr/local/include/harfbuzz
and this caused the system-harfbuzz not to be found when
/usr/local/include was not included by default (recent change on
macOS) and the code was doing #include <harfbuzz/hb.h>.
Fixes: QTBUG-85568
Change-Id: I12a34638e8ad5e3085768828457f0bfa1a2c68ad
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/3rdparty/harfbuzz-ng/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt index f8d1a77a75..b178d205d5 100644 --- a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt +++ b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt @@ -59,7 +59,7 @@ qt_add_3rdparty_library(BundledHarfbuzz INCLUDE_DIRECTORIES .core.includes PUBLIC_INCLUDE_DIRECTORIES - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/harfbuzz> ) qt_disable_warnings(BundledHarfbuzz) qt_set_symbol_visibility_hidden(BundledHarfbuzz) diff --git a/src/3rdparty/harfbuzz-ng/CMakeLists.txt b/src/3rdparty/harfbuzz-ng/CMakeLists.txt index a76cc629c8..2f895ab4d3 100644 --- a/src/3rdparty/harfbuzz-ng/CMakeLists.txt +++ b/src/3rdparty/harfbuzz-ng/CMakeLists.txt @@ -61,7 +61,7 @@ qt_add_3rdparty_library(BundledHarfbuzz $<TARGET_PROPERTY:Core,INCLUDE_DIRECTORIES> # special case "${CMAKE_CURRENT_SOURCE_DIR}" # special case PUBLIC_INCLUDE_DIRECTORIES - $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/harfbuzz> ) qt_disable_warnings(BundledHarfbuzz) qt_set_symbol_visibility_hidden(BundledHarfbuzz) diff --git a/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro b/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro index 1c6eb992f0..752d349ebc 100644 --- a/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro +++ b/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro @@ -5,7 +5,7 @@ CONFIG += \ hide_symbols \ exceptions_off rtti_off warn_off -MODULE_INCLUDEPATH += $$PWD/include +MODULE_INCLUDEPATH += $$PWD/include/harfbuzz load(qt_helper_lib) |