double fallback for load libcrypto
@@ -57,7 +57,11 @@ else()
if (NOT crypto_LIBRARY)
if (BUILD_SHARED_LIBS)
+ if (crypto_SHARED_LIBRARY)
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
+ else()
+ set(crypto_LIBRARY ${crypto_STATIC_LIBRARY})
+ endif()
else()
if (crypto_STATIC_LIBRARY)
set(crypto_LIBRARY ${crypto_STATIC_LIBRARY})
