cmake: disable gif2webp if gif lib isn't found

Change-Id: I218d5c0e3f4a82905c743705382cf02d26b29e6d
This commit is contained in:
James Zern 2017-07-06 12:15:38 -07:00
parent dcbc1c881a
commit c793417a3c

View File

@ -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"
"")