vcpkg/ports/curl/cmake-config.patch

13 lines
576 B
Diff
Raw Normal View History

diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in
2024-01-03 06:32:00 +08:00
index a013adf..2f39949 100644
--- a/CMake/curl-config.cmake.in
+++ b/CMake/curl-config.cmake.in
2024-01-03 06:32:00 +08:00
@@ -46,5 +46,6 @@ check_required_components("@PROJECT_NAME@")
# Alias for either shared or static library
2024-01-03 06:32:00 +08:00
if(NOT TARGET @PROJECT_NAME@::libcurl)
- add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
+ add_library(@PROJECT_NAME@::libcurl INTERFACE IMPORTED)
+ set_target_properties(@PROJECT_NAME@::libcurl PROPERTIES INTERFACE_LINK_LIBRARIES @PROJECT_NAME@::@LIB_SELECTED@)
2024-01-03 06:32:00 +08:00
endif()