From 65d70c7a30908321ba5ded2675537e7041dc8cbb Mon Sep 17 00:00:00 2001 From: flk Date: Mon, 8 Jul 2024 17:06:10 +0200 Subject: [PATCH] CMakeLists: require native hyprwayland-scanner (#8) This would fix a cross-compile issue where hyprwayland-scanner is pulled in for target but needs to run on host. Signed-off-by: Markus Volk --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81871cc..245edf8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ set(INCLUDE ${CMAKE_INSTALL_FULL_INCLUDEDIR}) set(LIBDIR ${CMAKE_INSTALL_FULL_LIBDIR}) find_package(PkgConfig REQUIRED) +find_package(hyprwayland-scanner 0.4.0 REQUIRED) pkg_check_modules(deps REQUIRED IMPORTED_TARGET libseat>=0.8.0 libinput>=1.26.0 wayland-client wayland-protocols @@ -24,7 +25,6 @@ pkg_check_modules(deps REQUIRED IMPORTED_TARGET pixman-1 libdrm gbm libudev libdisplay-info hwdata - hyprwayland-scanner>=0.4.0 ) configure_file(aquamarine.pc.in aquamarine.pc @ONLY)