[curl] Avoid targets in CURL_LIBRARIES - #29061
Conversation
|
Port cmake stumbled over Failing vs. fixed build, space replace with line breaks: --- /tmp/a 2023-01-19 22:04:58.856757391 +0100
+++ /tmp/b 2023-01-19 22:05:02.404762855 +0100
@@ -9,6 +9,7 @@
Source/kwsys/libcmsys.a
Utilities/std/libcmstd.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libexpat.a
+/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libarchive.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libbz2d.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libxml2.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libz.a
@@ -18,12 +19,10 @@
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libzstd.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libcrypto.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libz.a
-/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libarchive.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libcurl-d.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libssl.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libcrypto.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libz.a
-/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libarchive.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libcurl-d.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libssl.a
/home/dg0yt/Projekte/vcpkg/vcpkg/installed/x64-linux/debug/lib/libcrypto.a |
BillyONeal
left a comment
There was a problem hiding this comment.
I prefer the only use targets answer but this seems reasonable to me.
| string(REGEX REPLACE "([\$]<[^;]*)?OpenSSL::(SSL|Crypto)([^;]*>)?" "${OPENSSL_LIBRARIES}" _curl_link_libraries "${_curl_link_libraries}") | ||
| endif() | ||
| if(_curl_link_libraries MATCHES "Libssh2::libssh2") | ||
| # TODO: move find_dependency(Libssh2 CONFIG) into CURL config |
There was a problem hiding this comment.
| # TODO: move find_dependency(Libssh2 CONFIG) into CURL config |
There was a problem hiding this comment.
I would prefer to leave the comment.
It is a reminder to do a patch which must be upstreamed.
I just didn't want to add it here because we are also waiting for a port update to 7.87.
I would prefer targets, but they don't work in other ways, such as substituting them into files for pkg-config, or across sub-projects (#28827 (comment)). |
|
OK, thanks for the fix! |
Fixes issue with OSX builds on GH Actions See: microsoft#28827 microsoft#29061 Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
Fixes issue with OSX builds on GH Actions See: microsoft#28827 microsoft#29061 Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
fix: Race condition during cpp-driver configure / build fix: Bump curl and libarchive port versions fix: Issue with OSX builds on GH Actions See: microsoft#28827 microsoft#29061 chore: Squash commits for 8.12.0 gold release Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
Fixes #28827.
Needed for #27261.
Validated on x64-osx with
vcpkg install curl[openssl,ssh] aws-sdk-cpp.