From 8fa879c8d8d39e74fc9e001c25ffc5938461198b Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Wed, 25 Jan 2017 20:16:02 +0100 Subject: [PATCH] fix(cmake): Require xcb-proto>=1.12 for monitor support Refs #344 --- cmake/build/options.cmake | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/build/options.cmake b/cmake/build/options.cmake index 8ea7c331..592935ae 100644 --- a/cmake/build/options.cmake +++ b/cmake/build/options.cmake @@ -80,7 +80,7 @@ if(NOT DEFINED WITH_XRM) endif() if(NOT DEFINED ENABLE_XRANDR_MONITORS) - pkg_check_modules(XRANDR QUIET xrandr>=1.5.0 randrproto>=1.5.0) + pkg_check_modules(XRANDR QUIET xrandr>=1.5.0 randrproto>=1.5.0 xcb-proto>=1.12) if(NOT XRANDR_FOUND) set(XRANDR_FOUND OFF) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3fdab909..827e310c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -24,7 +24,7 @@ set(APP_INCLUDE_DIRS ${APP_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS}) set(XCB_PROTOS xproto) if(WITH_XRANDR) if(ENABLE_XRANDR_MONITORS) - pkg_check_modules(XRANDR REQUIRED xrandr>=1.5.0 randrproto>=1.5.0) + pkg_check_modules(XRANDR REQUIRED xrandr>=1.5.0 randrproto>=1.5.0 xcb-proto>=1.12) endif() set(XCB_PROTOS "${XCB_PROTOS}" randr) set(XPP_EXTENSION_LIST ${XPP_EXTENSION_LIST} xpp::randr::extension)