summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-05-11 14:12:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-05-11 14:12:14 (GMT)
commit6fa5194dde518387b6fbac42e576c1212aa18302 (patch)
tree109c22d2c8a91d215351aec0ccb0a98ae3e6bade /Modules/FindGTK2.cmake
parentcee7eb8b3ab31a47f60b5d793c88548acef840e3 (diff)
parent5ab137b7e988db16ca7204e98869bca1b6442b25 (diff)
downloadCMake-6fa5194dde518387b6fbac42e576c1212aa18302.zip
CMake-6fa5194dde518387b6fbac42e576c1212aa18302.tar.gz
CMake-6fa5194dde518387b6fbac42e576c1212aa18302.tar.bz2
Merge topic 'FindGTK2-harfbuzz-target'
5ab137b7e9 FindGTK2: Add harfbuzz target for dependency from pango Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4725
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 565763d..62f1614 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -695,11 +695,14 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_LIBRARY (CAIRO cairo false false)
_GTK2_ADD_TARGET (CAIRO)
+ _GTK2_FIND_INCLUDE_DIR(HARFBUZZ hb.h)
+ _GTK2_FIND_LIBRARY (HARFBUZZ harfbuzz false false)
+ _GTK2_ADD_TARGET (HARFBUZZ)
+
_GTK2_FIND_INCLUDE_DIR(PANGO pango/pango.h)
_GTK2_FIND_LIBRARY (PANGO pango false true)
- _GTK2_ADD_TARGET (PANGO GTK2_DEPENDS gobject glib)
-
- _GTK2_FIND_INCLUDE_DIR(HARFBUZZ hb.h)
+ _GTK2_ADD_TARGET (PANGO GTK2_DEPENDS gobject glib
+ GTK2_OPTIONAL_DEPENDS harfbuzz)
_GTK2_FIND_LIBRARY (PANGOCAIRO pangocairo false true)
_GTK2_ADD_TARGET (PANGOCAIRO GTK2_DEPENDS pango cairo gobject glib)