Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving OpenSSL search for APPLE platform #1624

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mayanksahu
Copy link

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/openssl@1.1/include
-- OPENSSL_LIBRARIES = /usr/local/opt/openssl@1.1/lib/libssl.dylib;/usr/local/opt/openssl@1.1/lib/libcrypto.dylib
So I'm making changes to strengthen the condition which makes us to go to fallback.

@guoxiangCN
Copy link

I also had this problem, hope you pr helpful

@mayanksahu
Copy link
Author

can we merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants