Skip to content

Commit e5cda3f

Browse files
HFTraderSergeyRyabinin
authored andcommitted
Keeps static OpenSSL library if found, otherwise uses dynamic version
1 parent 62c00f7 commit e5cda3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/Findcrypto.cmake

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ else()
5959
if (BUILD_SHARED_LIBS)
6060
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
6161
else()
62-
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
62+
if (crypto_STATIC_LIBRARY)
63+
set(crypto_LIBRARY ${crypto_STATIC_LIBRARY})
64+
else()
65+
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
66+
endif()
6367
endif()
6468
endif()
6569

0 commit comments

Comments
 (0)