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

Attempt to locate OpenSSL on MacOS if pkg-config detection fails #215

Closed
wants to merge 1 commit into from

Conversation

timmattison
Copy link
Contributor

Motivation

  • On MacOS OpenSSL may not be found by pkg-config. If it is not found the user then has to specify the OpenSSL root directory which they may not know. Since many Mac users use homebrew this patch attempts to use pkg-config to find OpenSSL and then falls back on the Cellar directory.

Modifications

Change summary

One modification to the CMakeLists.txt file that will search for homebrew installations of OpenSSL (on MacOS only) and then find the latest version to build with.

Testing

No CI for this but I needed to make this change in order to build the project on Mac OS

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@HarshGandhi-AWS HarshGandhi-AWS self-assigned this Jun 14, 2022
@@ -133,6 +133,26 @@ configure_file("source/Version.h.in" "${PROJECT_BINARY_DIR}/Version.h")
# OpenSSL dependency #
#########################################
set(OPENSSL_USE_STATIC_LIBS TRUE)

if(APPLE)
Copy link
Contributor

Choose a reason for hiding this comment

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

At this moment, Device Client does not provide support for MacOS. This is mainly because of the shadow feature of device client which does not work on MacOS because of dependency issue which is expected and known. Even if your change over here solves the issue of finding the OpenSSL on MacOS, we cannot push this change since it will give the wrong impression of device client is being supported on MacOS which is not true. For this reason we will have to close this review.

When we add support for Device Client on MacOS, we can reopen this review and merge your changes.

Thank you.

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.

2 participants