The REQUIRED for XCB should be at different line

Since there's a "set_package_properties", which sets "TYPE RECOMMENDED",
the "REQUIRED" should be put here instead.
This commit is contained in:
Martin Klapetek 2013-10-21 15:52:48 +02:00
parent 8ceb7d5fa2
commit 4b6a02b20e

View File

@ -73,10 +73,10 @@ find_package(Qt5X11Extras REQUIRED NO_MODULE)
#optional features
find_package(X11 MODULE)
find_package(XCB MODULE REQUIRED COMPONENTS XCB COMPOSITE DAMAGE)
find_package(XCB MODULE COMPONENTS XCB COMPOSITE DAMAGE)
set_package_properties(XCB PROPERTIES DESCRIPTION "X protocol C-language Binding"
URL "http://xcb.freedesktop.org"
TYPE RECOMMENDED
TYPE REQUIRED
)
if(X11_FOUND AND XCB_XCB_FOUND)
set(HAVE_X11 1)