2021-08-12 10:38:08 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-09-12 05:03:28 +08:00
|
|
|
index 7242d68..da69699 100644
|
2021-08-12 10:38:08 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-09-12 05:03:28 +08:00
|
|
|
@@ -1918,7 +1918,9 @@ if(NOT CURL_DISABLE_INSTALL)
|
2024-03-29 13:59:27 +08:00
|
|
|
endif()
|
|
|
|
endforeach()
|
|
|
|
|
2024-09-12 05:03:28 +08:00
|
|
|
- foreach(_lib IN LISTS CMAKE_C_IMPLICIT_LINK_LIBRARIES CURL_LIBS)
|
2024-01-03 06:32:00 +08:00
|
|
|
+ set(CURL_LIBS_FLAT "")
|
|
|
|
+ vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT)
|
2024-09-12 05:03:28 +08:00
|
|
|
+ foreach(_lib IN LISTS CURL_LIBS_FLAT)
|
2024-01-03 06:32:00 +08:00
|
|
|
if(TARGET "${_lib}")
|
|
|
|
set(_libname "${_lib}")
|
|
|
|
get_target_property(_imported "${_libname}" IMPORTED)
|