CMakeLists: just search for the wayland-scanner binary

This commit is contained in:
André Silva 2024-09-01 14:27:35 +01:00 committed by Mihai Fufezan
parent 8e5ca2a299
commit 2425e8f541

View file

@ -86,7 +86,7 @@ target_link_libraries(
PkgConfig::deps)
# protocols
pkg_get_variable(WaylandScanner wayland-scanner wayland_scanner)
find_program(WaylandScanner NAMES wayland-scanner)
message(STATUS "Found WaylandScanner at ${WaylandScanner}")
pkg_get_variable(WAYLAND_PROTOCOLS_DIR wayland-protocols pkgdatadir)
message(STATUS "Found wayland-protocols at ${WAYLAND_PROTOCOLS_DIR}")