summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenSSL.cmake
diff options
context:
space:
mode:
authorleha-bot <leha-bot@yandex.ru>2022-01-28 08:04:14 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-28 16:21:52 (GMT)
commitb5a21b0d845920be68e79b0fb3067918437d6813 (patch)
treeeaf71addad8bb314db92ff4e42fd0b5315159bd9 /Modules/FindOpenSSL.cmake
parentee1bed5058c69061dbc2c64871cabd8c2ab82d0e (diff)
downloadCMake-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.cmake6
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()