2023-09-26 15:09:06 +08:00
|
|
|
diff --git a/CMake/curl-config.cmake.in b/CMake/curl-config.cmake.in
|
2023-10-12 02:10:58 +08:00
|
|
|
index c89c686..2f39949 100644
|
2023-09-26 15:09:06 +08:00
|
|
|
--- a/CMake/curl-config.cmake.in
|
|
|
|
+++ b/CMake/curl-config.cmake.in
|
2023-10-12 02:10:58 +08:00
|
|
|
@@ -45,4 +45,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
2023-09-26 15:09:06 +08:00
|
|
|
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()
|