diff options
Diffstat (limited to 'lib/renderers/x11/CMakeLists.txt')
-rw-r--r-- | lib/renderers/x11/CMakeLists.txt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/renderers/x11/CMakeLists.txt b/lib/renderers/x11/CMakeLists.txt index 3357f34..2efdbb4 100644 --- a/lib/renderers/x11/CMakeLists.txt +++ b/lib/renderers/x11/CMakeLists.txt @@ -1,8 +1,7 @@ FIND_PACKAGE(X11) +FIND_PACKAGE(Cairo) -if (X11_FOUND) - FIND_PACKAGE(Cairo REQUIRED) - FIND_PACKAGE(Pango REQUIRED) +if (X11_FOUND AND CAIRO_FOUND AND PANGO_FOUND) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${X11_INCLUDE_DIR} ${X11_Xinerama_INCLUDE_PATH} ${CAIRO_INCLUDE_DIRS} ${PANGO_INCLUDE_DIRS}) ADD_LIBRARY(bemenu-renderer-x11 SHARED x11.c window.c xkb_unicode.c) SET_TARGET_PROPERTIES(bemenu-renderer-x11 PROPERTIES PREFIX "") |