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()