cmake: disable gif2webp if gif lib isn't found
@@ -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"
"")
