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

cmake: allow custom openssl path on macOS #6691

Merged
merged 1 commit into from
Aug 16, 2020

Conversation

selsta
Copy link
Collaborator

@selsta selsta commented Jun 25, 2020

It is now possible to specify a custom openssl dir by using -DOPENSSL_ROOT_DIR on macOS.

Tested with gitian, works as expected now. The old OpenSSL_DIR was probably a typo.

@@ -426,7 +426,7 @@ endif ()

if (APPLE AND NOT IOS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=x86-64 -fvisibility=default -std=c++11")
if (NOT OpenSSL_DIR)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fetch and install OpenSSL automatically? That seems odd to have in the Monero build process.

Copy link
Collaborator Author

@selsta selsta Jul 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If OPENSSL_ROOT_DIR is not set manually it will check if openssl is installed with brew and get its path. Nothing gets fetched or downloaded.

@Snipa22 Snipa22 merged commit 79e93a8 into monero-project:master Aug 16, 2020
@selsta selsta deleted the cmake-openssl branch August 16, 2020 20:20
stoffu pushed a commit to stoffu/monero that referenced this pull request Oct 5, 2021
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

5 participants