From 0cc7edfd0b33cfdce6b3c5df7fc368240dc71636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 5 Oct 2018 03:40:02 +0200 Subject: [PATCH] Add a BUILD_GUI define (for now only defined on BUILD_X11) --- cmake/ConkyBuildOptions.cmake | 5 +++++ cmake/config.h.in | 2 ++ 2 files changed, 7 insertions(+) diff --git a/cmake/ConkyBuildOptions.cmake b/cmake/ConkyBuildOptions.cmake index 0b2e0e22..ee4a33c0 100644 --- a/cmake/ConkyBuildOptions.cmake +++ b/cmake/ConkyBuildOptions.cmake @@ -207,6 +207,11 @@ else(BUILD_X11) set(BUILD_NVIDIA false) endif(BUILD_X11) +# if we build with any GUI support +if(BUILD_X11) + set(BUILD_GUI true) +endif(BUILD_X11) + if(OWN_WINDOW) option(BUILD_ARGB "Build ARGB (real transparency) support" true) else(OWN_WINDOW) diff --git a/cmake/config.h.in b/cmake/config.h.in index f2411517..b7fae0ce 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -113,6 +113,8 @@ #cmakedefine BUILD_HTTP 1 +#cmakedefine BUILD_GUI 1 + #cmakedefine BUILD_ICONV 1 #cmakedefine BUILD_LUA_CAIRO 1