Skip to content

Commit d427b55

Browse files
authored
Merge pull request #305 from akien-mga/libssh2-cmake-4.0
CI: Fix build on macOS 15 runner with CMake 4.0 and Xcode 16.4
2 parents 1a851f2 + 77fdf78 commit d427b55

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ jobs:
7070
macos-universal:
7171
runs-on: macos-15
7272
steps:
73+
- name: Setup Xcode 16.2 (16.3+ incompatible with libgit2's zlib)
74+
uses: maxim-lobanov/setup-xcode@v1
75+
with:
76+
xcode-version: '16.2'
7377
- uses: actions/checkout@v4
7478
with:
7579
submodules: recursive

tools/ssh2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def build_library(env, deps):
1515
"CMAKE_DISABLE_FIND_PACKAGE_ZLIB": 1,
1616
"CMAKE_DISABLE_FIND_PACKAGE_OPENSSL": 1,
1717
"CRYPTO_BACKEND": "OpenSSL",
18+
"CMAKE_POLICY_VERSION_MINIMUM": 3.5,
1819
}
1920

2021
if env["platform"] != "windows":

0 commit comments

Comments
 (0)