summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-29 11:51:38 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-01-29 11:51:45 (GMT)
commit55b4e3318db42b7de5d126eeed2854a9cfbc434c (patch)
tree68f132e668397fe4d8033d5299663f9090f5f3e6 /Modules
parented8158324bb7afcb06ecc4420e5d29a0a4d78be1 (diff)
parentb5a21b0d845920be68e79b0fb3067918437d6813 (diff)
downloadCMake-55b4e3318db42b7de5d126eeed2854a9cfbc434c.zip
CMake-55b4e3318db42b7de5d126eeed2854a9cfbc434c.tar.gz
CMake-55b4e3318db42b7de5d126eeed2854a9cfbc434c.tar.bz2
Merge topic 'FindOpenSSL-wince'
b5a21b0d84 FindOpenSSL: Fix ws2 reference on WinCE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6914
Diffstat (limited to 'Modules')
-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()