blob: 69932d719eaf102ac6f9ef81986ba71c99fc4a57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
The .cmake files this project includes don't play well with harfbuzz's internal .cmake file.
This patch works around the issues present in the project's CMake configuration.
diff --git a/cmake/FindPango.cmake b/cmake/FindPango.cmake
index 2a7da99d..c08fbaab 100644
--- a/cmake/FindPango.cmake
+++ b/cmake/FindPango.cmake
@@ -74,6 +74,13 @@ foreach(pango_dep ${Pango_DEPS})
set_property (TARGET "${Pango}" APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${${pango_dep}}")
endforeach(pango_dep)
+if(NOT HARFBUZZ_INCLUDE_DIR)
+find_package(harfbuzz)
+endif()
+
+list(APPEND Pango_INCLUDE_DIRS ${HARFBUZZ_INCLUDE_DIR})
+set_property (TARGET "${Pango}" APPEND PROPERTY INTERFACE_LINK_LIBRARIES "harfbuzz::harfbuzz")
+
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Pango
REQUIRED_VARS
|