diff options
author | leha-bot <leha-bot@yandex.ru> | 2022-01-28 08:04:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-01-28 16:21:52 (GMT) |
commit | b5a21b0d845920be68e79b0fb3067918437d6813 (patch) | |
tree | eaf71addad8bb314db92ff4e42fd0b5315159bd9 /Modules/FindOpenSSL.cmake | |
parent | ee1bed5058c69061dbc2c64871cabd8c2ab82d0e (diff) | |
download | CMake-b5a21b0d845920be68e79b0fb3067918437d6813.zip CMake-b5a21b0d845920be68e79b0fb3067918437d6813.tar.gz CMake-b5a21b0d845920be68e79b0fb3067918437d6813.tar.bz2 |
FindOpenSSL: Fix ws2 reference on WinCE
Fixes: #23070
Diffstat (limited to 'Modules/FindOpenSSL.cmake')
-rw-r--r-- | Modules/FindOpenSSL.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindOpenSSL.cmake b/Modules/FindOpenSSL.cmake index 85e386a..5a8bfef 100644 --- a/Modules/FindOpenSSL.cmake +++ b/Modules/FindOpenSSL.cmake @@ -124,7 +124,11 @@ function(_OpenSSL_target_add_dependencies target) set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${CMAKE_DL_LIBS} ) endif() if(WIN32 AND OPENSSL_USE_STATIC_LIBS) - set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ws2_32 ) + if(WINCE) + set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ws2 ) + else() + set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ws2_32 ) + endif() set_property( TARGET ${target} APPEND PROPERTY INTERFACE_LINK_LIBRARIES crypt32 ) endif() endfunction() |