Don't force static crypto dependency in case of a static build
@@ -59,7 +59,11 @@ else()
if (BUILD_SHARED_LIBS)
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
else()
+ if (crypto_STATIC_LIBRARY)
set(crypto_LIBRARY ${crypto_STATIC_LIBRARY})
+ else()
+ set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
+ endif()
endif()
endif()
