Skip to content

Homebrew has various installation path on macos_x86_64 and macos_arm64 #484

@Spockkk0225

Description

@Spockkk0225

brpc finds openssl in /usr/local/opt/openssl, which is a macos_x86_64 path:

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

But in macos_arm64, it often appears under /usr/local/Cellar/openssl@3/, which is not mentioned in the document.

Use brew --prefix openssl@3 to automatically detect and write the directory to OPENSSL_ROOT_DIR.

Metadata

Metadata

Assignees

Labels

Type

No fields configured for Task.

Projects

Status
To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions