mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 02:22:52 +08:00
curl: fix consuming curl via find_package. (#29741)
The commit [1] broke consuming curl for downstream projects:
CMake Error at cmake-build-debug/vcpkg_installed/x64-windows-static/share/curl/CURLTargets.cmake:61 (set_target_properties):
The link interface of target "CURL::libcurl" contains:
c-ares::cares
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.
[1]: c9eb3bd14e
This commit is contained in:
parent
48965e6132
commit
9cf4835a54
@ -1,5 +1,19 @@
|
||||
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in
|
||||
index 496a92d0e..564415ef6 100644
|
||||
--- a/CMake/curl-config.cmake.in
|
||||
+++ b/CMake/curl-config.cmake.in
|
||||
@@ -30,6 +30,9 @@ endif()
|
||||
if(@USE_ZLIB@)
|
||||
find_dependency(ZLIB @ZLIB_VERSION_MAJOR@)
|
||||
endif()
|
||||
+if(@USE_ARES@)
|
||||
+ find_dependency(c-ares)
|
||||
+endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
||||
check_required_components("@PROJECT_NAME@")
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f6e1071..62aed82 100644
|
||||
index b43520751..dbf62751f 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -169,8 +169,8 @@ set(CURL_LIBS "")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "curl",
|
||||
"version": "7.88.1",
|
||||
"port-version": 1,
|
||||
"description": "A library for transferring data with URLs",
|
||||
"homepage": "https://curl.se/",
|
||||
"license": null,
|
||||
|
@ -1886,7 +1886,7 @@
|
||||
},
|
||||
"curl": {
|
||||
"baseline": "7.88.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"curlpp": {
|
||||
"baseline": "2018-06-15",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9be28a8022b91c14e868d88a74eedc0dd891e966",
|
||||
"version": "7.88.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "2b76f0341314696395cfa982b5199c8336192757",
|
||||
"version": "7.88.1",
|
||||
|
Loading…
Reference in New Issue
Block a user