Skip to content

Commit

Permalink
allows cmake to force crypto linkage. (#175)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Musatkin <[email protected]>
  • Loading branch information
sbiscigl and DmitriyMusatkin authored Feb 14, 2024
1 parent 7b6716c commit 56f0a79
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 @@ -13,6 +13,7 @@ set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)

option(BYO_CRYPTO "Set this if you want to provide your own cryptography implementation. This will cause the defaults to not be compiled." OFF)
option(USE_OPENSSL "Set this if you want to use your system's OpenSSL 1.0.2/1.1.1 compatible libcrypto" OFF)
option(AWS_USE_CRYPTO_SHARED_LIBS "Force c-cal to use shared libs in Findcrypto" OFF)

if (DEFINED CMAKE_PREFIX_PATH)
file(TO_CMAKE_PATH "${CMAKE_PREFIX_PATH}" CMAKE_PREFIX_PATH)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/Findcrypto.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else()
${CMAKE_INSTALL_PREFIX}/lib
)

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

0 comments on commit 56f0a79

Please sign in to comment.