Skip to content

Commit

Permalink
use openssl@3 on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
upa committed Jan 19, 2025
1 parent 1c787e5 commit c16b981
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOPENSSL_ROOT_DIR=${{steps.brew-prefix.outputs.HOMEBREW_PREFIX}}/opt/openssl@1.1
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DOPENSSL_ROOT_DIR=${{steps.brew-prefix.outputs.HOMEBREW_PREFIX}}/opt/openssl@3

- name: Build
# Build your program with the given configuration
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ mkdir build && cd build
cmake ..

# in macOS, you may need OPENSSL_ROOT_DIR for cmake:
# cmake .. -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl@1.1
# cmake .. -DOPENSSL_ROOT_DIR=$(brew --prefix)/opt/openssl@3

# build
make
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ done
case $platform in
Darwin)
cmd="brew install"
pkgs="openssl@3.0"
pkgs="openssl@3"
;;
Linux-ubuntu*)
cmd="apt-get install --no-install-recommends -y"
Expand Down

0 comments on commit c16b981

Please sign in to comment.