From 4ad3d1615f90adc66f053183f82eec572b35d011 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 29 Jun 2020 12:56:13 +0100 Subject: Export Wayland_DATADIR This is useful if a library intends to reparse the original wayland.xml file instead of using the pregenerated headers. --- find-modules/FindWayland.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'find-modules/FindWayland.cmake') diff --git a/find-modules/FindWayland.cmake b/find-modules/FindWayland.cmake index 871fd91d..919b2aaa 100644 --- a/find-modules/FindWayland.cmake +++ b/find-modules/FindWayland.cmake @@ -32,6 +32,9 @@ # ``Wayland_DEFINITIONS`` # This should be passed to target_compile_options() if the targets are not # used for linking +# ``Wayland_DATADIR`` +# The core wayland protocols data directory +# Since 5.73.0 # # For each searched-for components, ``Wayland__FOUND`` will be set to # TRUE if the corresponding Wayland library was found, and FALSE otherwise. If @@ -115,6 +118,8 @@ find_package_handle_standard_args(Wayland HANDLE_COMPONENTS ) +pkg_get_variable(Wayland_DATADIR wayland-server pkgdatadir) + include(FeatureSummary) set_package_properties(Wayland PROPERTIES URL "https://wayland.freedesktop.org/" -- cgit v1.2.1