Skip to content
New issue

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

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

Already on GitHub? # to your account

mac 无法自定义 OpenSSL 路径 #2714

Closed
lqxhub opened this issue Jul 26, 2024 · 1 comment
Closed

mac 无法自定义 OpenSSL 路径 #2714

lqxhub opened this issue Jul 26, 2024 · 1 comment

Comments

@lqxhub
Copy link
Contributor

lqxhub commented Jul 26, 2024

brpc/CMakeLists.txt

Lines 256 to 260 in 5ae6ad6

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(OPENSSL_ROOT_DIR
"/usr/local/opt/openssl" # Homebrew installed OpenSSL
)
endif()

在cmake这里, 如果是mac平台,会把 OPENSSL_ROOT_DIR 设置为 Homebrew 安装的目录,这时候如果我想自定义 OpenSSL 的目录是无效的

解决办法

多一个判断,如果通过参数传入了, 就不要再强制修改了, 使用 cmake参数传入的

这个方案是否可行, 如果可行的话 我可以提交PR

@chenBright
Copy link
Contributor

欢迎提交PR

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

No branches or pull requests

2 participants