1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Let cmake check for and include xext when building with xdbe

This commit is contained in:
Nikolas Garofil 2010-01-25 00:08:06 +01:00
parent 4264f759bb
commit 0c19282eee

View File

@ -160,14 +160,10 @@ if(BUILD_X11)
# check for Xdbe
if(BUILD_XDBE)
find_path(X11_Xdbe_INCLUDE_PATH X11/extensions/Xdbe.h ${X11_INC_SEARCH_PATH})
if(X11_Xdbe_INCLUDE_PATH)
set(X11_Xdbe_FOUND true)
set(X11_INCLUDE_DIR ${X11_INCLUDE_DIR} ${X11_Xdbe_INCLUDE_PATH})
endif(X11_Xdbe_INCLUDE_PATH)
if(NOT X11_Xdbe_FOUND)
message(FATAL_ERROR "Unable to find Xdbe library")
endif(NOT X11_Xdbe_FOUND)
if(NOT X11_Xext_FOUND)
message(FATAL_ERROR "Unable to find Xext library (needed for Xdbe)")
endif(NOT X11_Xext_FOUND)
set(conky_libs ${conky_libs} ${X11_Xext_LIB})
endif(BUILD_XDBE)
endif(BUILD_X11)