disable a bunch of libwebp stuff

This commit is contained in:
Green Sky 2024-04-15 01:22:24 +02:00
parent 14f1d1d37f
commit cedb63b87a
No known key found for this signature in database

View File

@ -3,7 +3,19 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
include(FetchContent) include(FetchContent)
if (NOT TARGET libwebp) if (NOT TARGET libwebp)
set(WEBP_LINK_STATIC ON CACHE INTERNAL "") set(WEBP_LINK_STATIC ON CACHE BOOL "" FORCE)
set(WEBP_BUILD_CWEBP OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_DWEBP OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_GIF2WEBP OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_IMG2WEBP OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_VWEBP OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_WEBPINFO OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_LIBWEBPMUX ON CACHE BOOL "" FORCE)
set(WEBP_BUILD_WEBPMUX OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_EXTRAS OFF CACHE BOOL "" FORCE)
set(WEBP_BUILD_WEBP_JS OFF CACHE BOOL "" FORCE)
set(WEBP_USE_THREAD ON CACHE BOOL "" FORCE)
FetchContent_Declare(libwebp FetchContent_Declare(libwebp
GIT_REPOSITORY https://github.com/webmproject/libwebp GIT_REPOSITORY https://github.com/webmproject/libwebp
GIT_TAG v1.3.2 GIT_TAG v1.3.2