From 6cab6e6438ed04f49d53db96f3dba8e4abdfcc0d Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Sun, 12 Jul 2026 12:25:51 -0400 Subject: [PATCH] fix(build): allow vendored opus to configure under CMake 4 (#1763) --- .cargo/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index a0c334857..d42c757d3 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,3 +3,9 @@ # builds and much faster macOS link. Need lldb locals? Override per-shell: # CARGO_PROFILE_DEV_DEBUG=2 debug = "line-tables-only" + +[env] +# CMake 4 (pinned by hermit) removed compat with projects declaring +# cmake_minimum_required < 3.5; audiopus_sys's vendored opus declares 3.1. +# Same workaround CI uses. A value already set in the environment wins. +CMAKE_POLICY_VERSION_MINIMUM = "3.5"