From 4b8ad78657bc1b55080e3cfb350e3ebbe2c1f1ee Mon Sep 17 00:00:00 2001 From: Lily <47812810+LilyWangL@users.noreply.github.com> Date: Fri, 17 Apr 2020 02:48:33 +0800 Subject: [curlpp] Fix target "curlpp" link "ZLIB::ZLIB" error (#10535) * [curl] Add zlib to default feature * [curl] Fix line alignment * [curlpp] Fix target "curlpp" link "ZLIB::ZLIB" error * [curlpp] Fix target "curlpp" link "ZLIB::ZLIB" error --- ports/curlpp/CONTROL | 2 +- ports/curlpp/fix-findzliberror.patch | 9 +++++++++ ports/curlpp/portfile.cmake | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ports/curlpp/fix-findzliberror.patch diff --git a/ports/curlpp/CONTROL b/ports/curlpp/CONTROL index 3978c383c..cac6a6048 100644 --- a/ports/curlpp/CONTROL +++ b/ports/curlpp/CONTROL @@ -1,4 +1,4 @@ Source: curlpp -Version: 2018-06-15-2 +Version: 2018-06-15-3 Description: C++ wrapper around libcURL Build-Depends: curl diff --git a/ports/curlpp/fix-findzliberror.patch b/ports/curlpp/fix-findzliberror.patch new file mode 100644 index 000000000..4876d0f25 --- /dev/null +++ b/ports/curlpp/fix-findzliberror.patch @@ -0,0 +1,9 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c42943c..12d402c 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,3 +1,4 @@ ++cmake_minimum_required(VERSION 2.8) + project(curlpp) + + diff --git a/ports/curlpp/portfile.cmake b/ports/curlpp/portfile.cmake index fdc6d7f45..c80c3c180 100644 --- a/ports/curlpp/portfile.cmake +++ b/ports/curlpp/portfile.cmake @@ -6,6 +6,7 @@ vcpkg_from_github( HEAD_REF master PATCHES fix-cmake.patch + fix-findzliberror.patch ) vcpkg_configure_cmake( -- cgit v1.2.3