From 790628961dd56b2fbf1ffd40b7df2bb4a5db57e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ed=C3=AAnis=20Freindorfer=20Azevedo?= Date: Sat, 1 Aug 2020 17:35:11 -0300 Subject: [PATCH] Include X11 libs and header without screensaver. We need to always include these files and libs now due to using them on our keyboard background input solution. --- src/wx/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index c1831975..f5e4213b 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -79,9 +79,12 @@ endif() if(NOT WIN32 AND NOT APPLE) find_package(X11) - if(X11_X11_LIB AND X11_Xscreensaver_LIB) + if(X11_X11_LIB) include_directories(${X11_INCLUDE_DIR}) - list(APPEND VBAM_LIBS ${X11_X11_LIB} ${X11_Xscreensaver_LIB}) + list(APPEND VBAM_LIBS ${X11_X11_LIB}) + endif() + if(X11_Xscreensaver_LIB) + list(APPEND VBAM_LIBS ${X11_Xscreensaver_LIB}) add_definitions(-DHAVE_XSS) endif() endif()