diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e780ac0990..e42a530a444 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,12 +192,8 @@ if(NO_XWAYLAND) add_compile_definitions(NO_XWAYLAND) else() message(STATUS "XWAYLAND Enabled (NO_XWAYLAND not defined) checking deps...") - pkg_check_modules(xdeps REQUIRED IMPORTED_TARGET xcb xwayland xcb-util xcb-render xcb-xfixes xcb-icccm xcb-composite xcb-res xcb-ewmh) - pkg_check_modules(xcb_errors IMPORTED_TARGET xcb-errors) + pkg_check_modules(xdeps REQUIRED IMPORTED_TARGET xcb xwayland xcb-util xcb-render xcb-xfixes xcb-icccm xcb-composite xcb-res xcb-ewmh xcb-errors) target_link_libraries(Hyprland PkgConfig::xdeps) - if(xcb_errors_FOUND) - target_link_libraries(Hyprland PkgConfig::xcb_errors) - endif() endif() if(NO_SYSTEMD)