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.
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 theBUILD_SHARED_LIBS
variable and force using a dynamic libcrypto while settingBUILD_SHARED_LIBS
toOFF
this will check two new variablesFORCE_SHARED_CRYPTO
andFORCE_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.