Skip to content

Commit

Permalink
allows cmake to force crypto linkage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Jan 26, 2024
1 parent b515726 commit 7c8727a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/modules/Findcrypto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ else()
)

if (NOT crypto_LIBRARY)
if (BUILD_SHARED_LIBS)
if(${FORCE_SHARED_CRYPTO})
message(STATUS "forcing usage of shared crypto")
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
elseif (${FORCE_STATIC_CRYPTO})
message(STATUS "forcing usage of static crypto")
set(crypto_LIBRARY ${crypto_STATIC_LIBRARY})
elseif (BUILD_SHARED_LIBS)
if (crypto_SHARED_LIBRARY)
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
else()
Expand Down

0 comments on commit 7c8727a

Please sign in to comment.