Commit ae574373 authored by David Faure's avatar David Faure

Harmonize usage of HAVE_X11, using #if and #cmakedefine01.

parent 2ef71ced
......@@ -40,6 +40,7 @@ find_package(LibKWorkspace CONFIG REQUIRED)
if(X11_FOUND)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS X11Extras )
set(HAVE_XTEST ${X11_XTest_FOUND})
set(HAVE_X11 1)
endif()
configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h)
......
......@@ -41,4 +41,4 @@
#cmakedefine HAS_RANDR_1_3 1
/* Define if you have X11 at all */
#define HAVE_X11 ${X11_FOUND}
#cmakedefine01 HAVE_X11
......@@ -26,7 +26,6 @@
#include <KConfig> // Needed because of some Qt Status redefinitions
#include <KConfigGroup> // Needed because of some Qt Status redefinitions
#include <config-kwindowsystem.h> // Needed for HAVE_X11
#include <config-X11.h>
#include <kdemacros.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment