From 7c1538957dcfeef083b7321064c31e7365ffdc28 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 20 Mar 2014 16:58:21 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3807b20ffc..b8a10b3d98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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