From c793417a3cbeec3c45b692d43664d3079ace8d1e Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 6 Jul 2017 12:15:38 -0700 Subject: [PATCH] cmake: disable gif2webp if gif lib isn't found Change-Id: I218d5c0e3f4a82905c743705382cf02d26b29e6d --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 522df1c3..93c9c56d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -215,6 +215,10 @@ if(WEBP_BUILD_CWEBP) install(TARGETS cwebp RUNTIME DESTINATION bin) endif() +if(WEBP_BUILD_GIF2WEBP AND NOT GIF_FOUND) + unset(WEBP_BUILD_GIF2WEBP CACHE) +endif() + if(WEBP_BUILD_GIF2WEBP OR WEBP_BUILD_IMG2WEBP) parse_Makefile_am(${CMAKE_CURRENT_SOURCE_DIR}/src/mux "WEBP_MUX_SRCS" "")