Improving OpenSSL search for APPLE platform
In MacOS BigSurr while compiling the repo we are not able to find OpenSSL (required version >= 1.0.0) On investigation, it was happening because of two cmake variables not being set properly: OPENSSL_INCLUDE_DIR, OPENSSL_LIBRARIES
when running pkg_search_module(OPENSSL openssl) to get info on openssl, we end up with
-- OPENSSL_INCLUDE_DIR = -- OPENSSL_LIBRARIES = ssl;crypto find_package(OpenSSL 1.0.0 REQUIRED), which is a fallback when pkg_search_module fails, is able to set the values properly.
-- OPENSSL_INCLUDE_DIR = /usr/local/opt/[email protected]/include -- OPENSSL_LIBRARIES = /usr/local/opt/[email protected]/lib/libssl.dylib;/usr/local/opt/[email protected]/lib/libcrypto.dylib So I'm making changes to strengthen the condition which makes us to go to fallback.
I also had this problem, hope you pr helpful
can we merge this?