CMakeLists: require native hyprwayland-scanner

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 <f_l_k@t-online.de>
This commit is contained in:
Markus Volk 2024-08-17 08:26:30 +02:00 committed by Mihai Fufezan
parent 808d88e574
commit 91e17e12ff

View file

@ -45,6 +45,7 @@ add_compile_options(-Wall -Wextra -Wno-unused-parameter -Wno-unused-value
find_package(Threads REQUIRED) find_package(Threads REQUIRED)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
find_package(hyprwayland-scanner 0.4.0 REQUIRED)
pkg_check_modules( pkg_check_modules(
deps deps
@ -58,8 +59,7 @@ pkg_check_modules(
libjpeg libjpeg
libwebp libwebp
hyprlang>=0.2.0 hyprlang>=0.2.0
hyprutils>=0.2.0 hyprutils>=0.2.0)
hyprwayland-scanner>=0.4.0)
file(GLOB_RECURSE SRCFILES "src/*.cpp") file(GLOB_RECURSE SRCFILES "src/*.cpp")