From cedb63b87aff563a434a8d8ba6ce1f1b5caecc48 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 15 Apr 2024 01:22:24 +0200 Subject: [PATCH] disable a bunch of libwebp stuff --- external/libwebp/CMakeLists.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/external/libwebp/CMakeLists.txt b/external/libwebp/CMakeLists.txt index df418541..6c5a32fc 100644 --- a/external/libwebp/CMakeLists.txt +++ b/external/libwebp/CMakeLists.txt @@ -3,7 +3,19 @@ cmake_minimum_required(VERSION 3.9 FATAL_ERROR) include(FetchContent) 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 GIT_REPOSITORY https://github.com/webmproject/libwebp GIT_TAG v1.3.2