mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 06:59:01 +08:00
08a6cdd73b
* [curl] Update to 8.3.0 * Add explicit usage * Fix CMake 3.7 compatibility * Update copyright * Update vcpkg-cmake-wrapper
14 lines
644 B
Diff
14 lines
644 B
Diff
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in
|
|
index 056907c4f..56f7c9dd9 100644
|
|
--- a/CMake/curl-config.cmake.in
|
|
+++ b/CMake/curl-config.cmake.in
|
|
@@ -35,4 +35,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
|
check_required_components("@PROJECT_NAME@")
|
|
|
|
# Alias for either shared or static library
|
|
-add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
|
|
+if(NOT TARGET @PROJECT_NAME@::libcurl)
|
|
+ add_library(@PROJECT_NAME@::libcurl INTERFACE IMPORTED)
|
|
+ set_target_properties(@PROJECT_NAME@::libcurl PROPERTIES INTERFACE_LINK_LIBRARIES @PROJECT_NAME@::@LIB_SELECTED@)
|
|
+endif()
|