aboutsummaryrefslogtreecommitdiff
path: root/ports/leptonica/fix-find-libwebp.patch
diff options
context:
space:
mode:
authorJackBoosY <47264268+JackBoosY@users.noreply.github.com>2019-08-22 05:01:57 +0800
committerVictor Romero <romerosanchezv@gmail.com>2019-08-21 14:01:57 -0700
commit34a26540b1d2034aa8802feb1078a54b74368fcd (patch)
tree49d0c05d5b8784f4d535362d0bc950ae171f56aa /ports/leptonica/fix-find-libwebp.patch
parentec3060c73fed32108eac8252b59b8bd42dc61af1 (diff)
downloadvcpkg-34a26540b1d2034aa8802feb1078a54b74368fcd.tar.gz
vcpkg-34a26540b1d2034aa8802feb1078a54b74368fcd.zip
[leptonica]Add dependency port libwebp and fix find libwebp in debug/release (#7712)
* [leptonica]Add dependency port libwebp and fix find libwebp in debug/release. * [leptonica]Add dependency to LeptonicaConfig.cmake. * [leptonica]Re-fix find libwebp.
Diffstat (limited to 'ports/leptonica/fix-find-libwebp.patch')
-rw-r--r--ports/leptonica/fix-find-libwebp.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/ports/leptonica/fix-find-libwebp.patch b/ports/leptonica/fix-find-libwebp.patch
new file mode 100644
index 000000000..636bf655f
--- /dev/null
+++ b/ports/leptonica/fix-find-libwebp.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index debc232..2aa2d3a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -60,8 +60,7 @@ if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.cppan)
+ endif()
+ if(NOT WEBP)
+ message(STATUS "Looking for WEBP")
+- find_path(WEBP_INCLUDE_DIR /webp/decode.h)
+- find_library(WEBP_LIBRARY NAMES webp)
++ find_package(WebP CONFIG REQUIRED)
+ if (WEBP_INCLUDE_DIR AND WEBP_LIBRARY)
+ set(WEBP 1)
+ set(WEBP_FOUND TRUE)