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

[3.2] pick sane defaults for OPENSSL_ROOT_DIR on ARM macOS #504

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

spoonincode
Copy link
Member

When doing a macos ARM build, use homebrew's default openssl location for default OPENSSL_ROOT_DIR

@@ -54,7 +54,11 @@ set(ENABLE_MULTIVERSION_PROTOCOL_TEST FALSE CACHE BOOL "Enable nodeos multiversi

# add defaults for openssl
if(APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "")
set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl@3;/usr/local/opt/openssl@1.1")
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be something like if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")

Copy link
Member Author

Choose a reason for hiding this comment

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

It's inside of the if(APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "") already; so it's def only going to apply to APPLE. Probably could condense this some by doing something like

if(APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
   #one line for arm stuff
elseif(APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "")
   #one line for x86 stuff
endif()

But I suppose was trying to avoid the repetition of the APPLE AND UNIX AND "${OPENSSL_ROOT_DIR}" STREQUAL "" part.

@spoonincode spoonincode merged commit ef0f04a into main Jun 23, 2022
@spoonincode spoonincode deleted the brew_openssl_arm_defaults branch June 23, 2022 03:28
@arhag arhag changed the title pick sane defaults for OPENSSL_ROOT_DIR on ARM macOS [3.2] pick sane defaults for OPENSSL_ROOT_DIR on ARM macOS Jul 1, 2022
@arhag arhag added this to the Mandel 3.2.0-rc1 milestone Jul 1, 2022
@arhag arhag modified the milestones: Mandel 3.2.0-rc1, Mandel 3.2.0 Aug 17, 2022
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.

3 participants