diff options
author | Brad King <brad.king@kitware.com> | 2022-01-29 11:51:38 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-01-29 11:51:45 (GMT) |
commit | 55b4e3318db42b7de5d126eeed2854a9cfbc434c (patch) | |
tree | 68f132e668397fe4d8033d5299663f9090f5f3e6 /Modules | |
parent | ed8158324bb7afcb06ecc4420e5d29a0a4d78be1 (diff) | |
parent | b5a21b0d845920be68e79b0fb3067918437d6813 (diff) | |
download | CMake-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.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() |