cmake: ensure the wayland-protocols package is available

This commit is contained in:
Daniel Eklöf 2019-02-07 12:45:05 +01:00
parent a62c7e675c
commit 4b0c4c669c

View file

@ -35,6 +35,7 @@ if (ENABLE_WAYLAND)
set(${_deps} ${deps} PARENT_SCOPE)
endfunction ()
pkg_check_modules(WAYLAND_PROTOCOLS REQUIRED wayland-protocols)
execute_process(
COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=pkgdatadir wayland-protocols
OUTPUT_VARIABLE WAYLAND_PROTOCOLS