aboutsummaryrefslogtreecommitdiff
path: root/find-modules
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2020-06-29 12:56:13 +0100
committerDavid Edmundson <davidedmundson@kde.org>2020-07-06 13:51:19 +0000
commit4ad3d1615f90adc66f053183f82eec572b35d011 (patch)
tree57bc93a2af94215200066633c54dc848269d0b37 /find-modules
parentada528dc4b71cb5cc16902aea2b9e16b3f4b53f2 (diff)
downloadextra-cmake-modules-4ad3d1615f90adc66f053183f82eec572b35d011.tar.gz
extra-cmake-modules-4ad3d1615f90adc66f053183f82eec572b35d011.tar.bz2
Export Wayland_DATADIR
This is useful if a library intends to reparse the original wayland.xml file instead of using the pregenerated headers.
Diffstat (limited to 'find-modules')
-rw-r--r--find-modules/FindWayland.cmake5
1 files changed, 5 insertions, 0 deletions
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_<component>_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/"