Skip to content

Commit

Permalink
allows cmake to force crypto linkage. (#4383)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl authored Feb 13, 2024
1 parent ae78fe9 commit 0998358
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ option(COVERAGE "Enable profiling collection for code coverage calculation" OFF)
option(S2N_INTEG_TESTS "Enable the integrationv2 tests" OFF)
option(S2N_FAST_INTEG_TESTS "Enable the integrationv2 with more parallelism, only has effect if S2N_INTEG_TESTS=ON" ON)
option(S2N_INSTALL_S2NC_S2ND "Install the binaries s2nc and s2nd" OFF)
option(S2N_USE_CRYPTO_SHARED_LIBS "For S2N to use shared libs in Findcrypto" OFF)
option(TSAN "Enable ThreadSanitizer to test thread safety" OFF)
option(ASAN "Enable AddressSanitizer to test memory safety" OFF)

Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/Findcrypto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ else()
)

if (NOT crypto_LIBRARY)
if (BUILD_SHARED_LIBS)
if (BUILD_SHARED_LIBS OR S2N_USE_CRYPTO_SHARED_LIBS)
if (crypto_SHARED_LIBRARY)
set(crypto_LIBRARY ${crypto_SHARED_LIBRARY})
else()
Expand Down

0 comments on commit 0998358

Please sign in to comment.