awslabs / aws-c-cal

Aws Crypto Abstraction Layer: Cross-Platform, C99 wrapper for cryptography primitives.
Apache License 2.0
33 stars 36 forks source link

allows cmake to force crypto linkage. #175

Closed sbiscigl closed 5 months ago

sbiscigl commented 5 months ago

Description of changes:

This mirrors the AWS C++ SDK's PR that uses the same FindCrypto module. There is a user that wants to be able to control static linkage outside of the BUILD_SHARED_LIBS variable and force using a dynamic libcrypto while setting BUILD_SHARED_LIBS to OFF this will check two new variables FORCE_SHARED_CRYPTO and FORCE_STATIC_CRYPTO to force the usage of the corresponding library.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.