Skip to content

Commit ef00a28

Browse files
committed
ci: Add workaround for vcpkg's libevent package
This change is necessary for Windows GHA images, which provide CMake >= 4.0.
1 parent 74d9598 commit ef00a28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ jobs:
205205
run: |
206206
echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows.cmake"
207207
echo "set(VCPKG_BUILD_TYPE release)" >> "${VCPKG_INSTALLATION_ROOT}/triplets/x64-windows-static.cmake"
208+
# Workaround for libevent, which requires CMake 3.1 but is incompatible with CMake >= 4.0.
209+
sed -i '1s/^/set(ENV{CMAKE_POLICY_VERSION_MINIMUM} 3.5)\n/' "${VCPKG_INSTALLATION_ROOT}/scripts/ports.cmake"
208210
209211
- name: vcpkg tools cache
210212
uses: actions/cache@v4

0 commit comments

Comments
 (0)