eBay / NuRaft

C++ implementation of Raft core logic as a replication library
Apache License 2.0
996 stars 236 forks source link

Use find_package for OpenSSL detection #451

Closed JosiahWI closed 1 year ago

JosiahWI commented 1 year ago

This refactors CMakeLists.txt to call find_package() instead of using our own detection logic. The result is easier to read, and will benefit from improvements to the FindOpenSSL module, which is battle-hardened.

The following options' behavior was preserved: DEPS_PATH, OPENSSL_INCLUDE_PATH, and OPENSSL_LIBRARY_PATH.

The change was implemented on OS X, so the developer was able to verify that Homebrew's OpenSSL1.1 can be detected after the change.

This is continuing the work started in #358.