2023-09-26 15:09:06 +08:00
|
|
|
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
|
2023-09-26 15:09:06 +08:00
|
|
|
--- 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@")
|
2023-09-26 15:09:06 +08:00
|
|
|
|
|
|
|
# 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@)
|
2023-09-26 15:09:06 +08:00
|
|
|
+ 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()
|