Skip to content

Commit 08ca77a

Browse files
committed
cmake: Another fix for OpenSSL bundling logic.
The original version did not work for Win.
1 parent 8b2c9fd commit 08ca77a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cdk/cmake/DepFindSSL.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ function(bundle_ssl_libs)
277277
return()
278278
endif()
279279

280-
# Note: We want to bundle the shared libraries, like libssl.so.1.1,
281-
# not symlinks that point to them
282280

283-
if(EXISTS ${OPENSSL_LIBRARY} AND EXISTS ${CRYPTO_LIBRARY})
281+
if(NOT WIN32 AND EXISTS ${OPENSSL_LIBRARY} AND EXISTS ${CRYPTO_LIBRARY})
284282

285-
# Read symlinks
283+
# Note: On U**ix systems the files we link to are symlinks to
284+
# the actual shared libs, so we read these symlinks here and
285+
# bundle their targets.
286286

287287
foreach(lib ${OPENSSL_LIBRARY} ${CRYPTO_LIBRARY})
288288

0 commit comments

Comments
 (0)