vcpkg/ports/curl/0020-fix-pc-file.patch

16 lines
620 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2024-01-03 06:32:00 +08:00
index 3b83a7f..0ceaf5b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-01-03 06:32:00 +08:00
@@ -1652,7 +1652,9 @@ if(NOT CURL_DISABLE_INSTALL)
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
set(LIBCURL_LIBS "")
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
- foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
+ set(CURL_LIBS_FLAT "")
+ vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT)
+ foreach(_lib ${CURL_LIBS_FLAT})
if(TARGET "${_lib}")
set(_libname "${_lib}")
get_target_property(_imported "${_libname}" IMPORTED)