mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 19:08:07 +08:00
FindGTK2: Add harfbuzz target for dependency from pango
Since commit effafca77e
(FindGTK2: Add harfbuzz to GTK2_INCLUDE_DIRS,
2019-10-01, v3.16.0-rc1~22^2), pango's dependency on harfbuzz has been
captured, but only for the `GTK2_INCLUDE_DIRS` and `GTK2_LIBRARIES`
variables. Add the `GTK2::harfbuzz` imported target and update the
`GTK2::pango` target to depend on it.
Issue: #19531
This commit is contained in:
@@ -708,11 +708,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)
|
||||
|
Reference in New Issue
Block a user