2021-08-12 10:38:08 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-10-12 02:10:58 +08:00
|
|
|
index bb5fba9..9919fd3 100644
|
2021-08-12 10:38:08 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-10-12 02:10:58 +08:00
|
|
|
@@ -1624,7 +1624,9 @@ set(includedir "\${prefix}/include")
|
2021-08-12 10:38:08 +08:00
|
|
|
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 "")
|
2022-01-20 01:15:16 +08:00
|
|
|
+vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT)
|
2021-08-12 10:38:08 +08:00
|
|
|
+foreach(_lib ${CURL_LIBS_FLAT})
|
|
|
|
if(TARGET "${_lib}")
|
|
|
|
set(_libname "${_lib}")
|
2021-11-23 07:44:48 +08:00
|
|
|
get_target_property(_imported "${_libname}" IMPORTED)
|