Remove the need of having a global HAVE_X11 variable

Use the standard X11_FOUND instead
Also properly set the HAVE_X11 value, since it's checked with #if HAVE_X11
instead of #ifdef.
This commit is contained in:
Aleix Pol 2014-03-20 16:58:21 +01:00
parent 845d5872c4
commit 7c1538957d

View file

@ -113,7 +113,6 @@ set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
URL "http://www.x.org"
TYPE REQUIRED
)
set(HAVE_X11 ${X11_FOUND})
# All the required XCB components
find_package(XCB REQUIRED COMPONENTS