mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:19:23 +08:00
16 lines
491 B
Diff
16 lines
491 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 3a2128e..e9c9c92 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1662,7 +1662,9 @@ if(NOT CURL_DISABLE_INSTALL)
|
|
endif()
|
|
endforeach()
|
|
|
|
- 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)
|