mirror of
https://github.com/glfw/glfw.git
synced 2025-06-14 19:52:14 +00:00
src/CMakeLists.txt: allow override of wayland pkgdatadir
Allow the user to override WAYLAND_{PROTOCOLS_BASE,CLIENT_PKGDATADIR} (needed when cross-compiling) Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
d78b0a4ead
commit
46aaf2b2b4
@ -75,8 +75,12 @@ if (GLFW_BUILD_WAYLAND)
|
||||
|
||||
include(FindPkgConfig)
|
||||
pkg_check_modules(WAYLAND_PROTOCOLS REQUIRED wayland-protocols>=1.15)
|
||||
pkg_get_variable(WAYLAND_PROTOCOLS_BASE wayland-protocols pkgdatadir)
|
||||
pkg_get_variable(WAYLAND_CLIENT_PKGDATADIR wayland-client pkgdatadir)
|
||||
if (NOT WAYLAND_PROTOCOLS_BASE)
|
||||
pkg_get_variable(WAYLAND_PROTOCOLS_BASE wayland-protocols pkgdatadir)
|
||||
endif()
|
||||
if (NOT WAYLAND_CLIENT_PKGDATADIR)
|
||||
pkg_get_variable(WAYLAND_CLIENT_PKGDATADIR wayland-client pkgdatadir)
|
||||
endif()
|
||||
|
||||
macro(wayland_generate protocol_file output_file)
|
||||
add_custom_command(OUTPUT "${output_file}.h"
|
||||
|
Loading…
Reference in New Issue
Block a user