Warning, /graphics/krita/3rdparty/ext_webp/0010-WebPConfig-add-dependency-lookup-for-Threads.patch is written in an unsupported language. File is not indexed.
0001 From 10f5acade78ca914986ba86581f200dd95e22979 Mon Sep 17 00:00:00 2001 0002 From: "L. E. Segovia" <amy@amyspark.me> 0003 Date: Sat, 1 Oct 2022 22:31:34 -0300 0004 Subject: [PATCH] WebPConfig: add dependency lookup for Threads 0005 0006 Fixes https://crbug.com/webp/583 0007 --- 0008 cmake/WebPConfig.cmake.in | 6 ++++++ 0009 1 file changed, 6 insertions(+) 0010 0011 diff --git a/cmake/WebPConfig.cmake.in b/cmake/WebPConfig.cmake.in 0012 index 822fc592..a4234614 100644 0013 --- a/cmake/WebPConfig.cmake.in 0014 +++ b/cmake/WebPConfig.cmake.in 0015 @@ -3,6 +3,12 @@ set(WEBP_VERSION ${WebP_VERSION}) 0016 0017 @PACKAGE_INIT@ 0018 0019 +set(webp_needthreads @WEBP_USE_THREAD@) 0020 +if (webp_needthreads) 0021 + find_dependency(Threads REQUIRED) 0022 +endif() 0023 +unset(webp_needthreads) 0024 + 0025 include ("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake") 0026 0027 set(WebP_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@") 0028 -- 0029 2.37.3 0030