aws / s2n-tls

An implementation of the TLS/SSL protocols
https://aws.github.io/s2n-tls/usage-guide/
Apache License 2.0
4.52k stars 704 forks source link

Use CMake commands to set S2N_LIBCRYPTO environment variable #4814

Open boquan-fang opened 1 day ago

boquan-fang commented 1 day ago

Problem:

The current way of setting S2N_LIBCRYPTO environment variable is through passing it in CMAKE_PREFIX_PATH, and then use it in CMakeLists.txt. We want to set S2N_LIBCRYPTO in a more deliberate CMake design. https://github.com/aws/s2n-tls/blob/a29068a46ca12a3cb75f559bc2130ac8fa5daa7d/codebuild/spec/buildspec_sanitizer.yml#L104-L109 https://github.com/aws/s2n-tls/blob/a29068a46ca12a3cb75f559bc2130ac8fa5daa7d/CMakeLists.txt#L235-L238

Solution:

Requirements / Acceptance Criteria: