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 29, 2024
1 parent b515726 commit 844e36d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/modules/Findcrypto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ else()
)

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

0 comments on commit 844e36d

Please sign in to comment.