fix(cmake): Require randproto>=1.5 for monitor support

Refs #344
This commit is contained in:
Michael Carlberg 2017-01-25 17:36:39 +01:00
parent 95d5b03fa2
commit 017abee679
2 changed files with 2 additions and 2 deletions

View File

@ -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)
pkg_check_modules(XRANDR QUIET xrandr>=1.5.0 randrproto>=1.5.0)
if(NOT XRANDR_FOUND)
set(XRANDR_FOUND OFF)
endif()

View File

@ -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)
pkg_check_modules(XRANDR REQUIRED xrandr>=1.5.0 randrproto>=1.5.0)
endif()
set(XCB_PROTOS "${XCB_PROTOS}" randr)
set(XPP_EXTENSION_LIST ${XPP_EXTENSION_LIST} xpp::randr::extension)