diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-20 11:56:13 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-20 11:56:13 -0500 |
commit | dfc23086fd9597a5f9c7182851052435e134be5f (patch) | |
tree | 946a056785f05744932f21538a90f5687deb299c /CMake | |
parent | 66554698a08e8c3846d22f61445c880c9de20e26 (diff) | |
parent | 21014e606b9b28d792b98cf363f20c7df2136723 (diff) | |
download | sway-dfc23086fd9597a5f9c7182851052435e134be5f.tar.xz |
Merge pull request #377 from progandy/optional-pixbuf
make gdk-pixbuf dependency really optional
Diffstat (limited to 'CMake')
-rw-r--r-- | CMake/FindGdkPixbuf.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMake/FindGdkPixbuf.cmake b/CMake/FindGdkPixbuf.cmake index 53bb0501..4ea1d5b9 100644 --- a/CMake/FindGdkPixbuf.cmake +++ b/CMake/FindGdkPixbuf.cmake @@ -29,6 +29,7 @@ IF(NOT GDK_PIXBUF_FOUND AND NOT PKG_CONFIG_FOUND) # Report results IF(GDK_PIXBUF_LIBRARIES AND GDK_PIXBUF_INCLUDE_DIRS) SET(GDK_PIXBUF_FOUND 1) + SET(GdkPixbuf_FOUND 1) IF(NOT GdkPixbuf_FIND_QUIETLY) MESSAGE(STATUS "Found GdkPixbuf: ${GDK_PIXBUF_LIBRARIES}") ENDIF(NOT GdkPixbuf_FIND_QUIETLY) @@ -41,6 +42,8 @@ IF(NOT GDK_PIXBUF_FOUND AND NOT PKG_CONFIG_FOUND) ENDIF(NOT GdkPixbuf_FIND_QUIETLY) ENDIF(GdkPixbuf_FIND_REQUIRED) ENDIF(GDK_PIXBUF_LIBRARIES AND GDK_PIXBUF_INCLUDE_DIRS) +ELSE(NOT GDK_PIXBUF_FOUND AND NOT PKG_CONFIG_FOUND) + SET(GdkPixbuf_FOUND 1) ENDIF(NOT GDK_PIXBUF_FOUND AND NOT PKG_CONFIG_FOUND) # Hide advanced variables from CMake GUIs |