mirror of
https://github.com/curl/curl.git
synced 2026-04-13 12:41:42 +08:00
cmake: fix ws2_32 reference in curl-config.cmake
Follow-up to16f073ef49#16973 Follow-up to554dfa5568#17927 Closes #19775
This commit is contained in:
parent
f553bff6ee
commit
7799d15eef
@ -133,7 +133,7 @@ set(CMAKE_MODULE_PATH ${_curl_cmake_module_path_save})
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND WIN32 AND NOT TARGET CURL::win32_winsock)
|
||||
add_library(CURL::win32_winsock INTERFACE IMPORTED)
|
||||
set_target_properties(CURL::win32_winsock PROPERTIES INTERFACE_LINK_LIBRARIES "@_win32_winsock@")
|
||||
set_target_properties(CURL::win32_winsock PROPERTIES INTERFACE_LINK_LIBRARIES "ws2_32")
|
||||
endif()
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@TARGETS_EXPORT_NAME@.cmake")
|
||||
|
||||
@ -2340,7 +2340,6 @@ if(NOT CURL_DISABLE_INSTALL)
|
||||
# USE_RUSTLS
|
||||
# USE_WIN32_LDAP CURL_DISABLE_LDAP
|
||||
# USE_WOLFSSL
|
||||
# _win32_winsock
|
||||
configure_package_config_file("CMake/curl-config.cmake.in"
|
||||
"${_project_config}"
|
||||
INSTALL_DESTINATION ${_install_cmake_dir}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user