fix(build): set CMAKE_POLICY_VERSION_MINIMUM for audiopus_sys in cargo env
audiopus_sys 0.2.2 builds its vendored Opus via the cmake crate, and the bundled opus CMakeLists still declares cmake_minimum_required(VERSION 3.1). CMake 4.0 removed compatibility with < 3.5, so any dev host with a modern cmake fails cargo check/clippy on pi-voice with 'Compatibility with CMake < 3.5 has been removed from CMake.' The bazel build already sets this override for the same crate (audiopus_sys annotation in MODULE.bazel); mirror it in .cargo/config.toml so the cargo path (bun check:rs) works on CMake 4.x hosts too.
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
# Cargo environment for the workspace.
|
||||||
|
#
|
||||||
|
# audiopus_sys 0.2.2 builds its vendored Opus via the `cmake` crate, and the
|
||||||
|
# bundled opus CMakeLists still declares `cmake_minimum_required(VERSION 3.1)`.
|
||||||
|
# CMake 4.0 removed compatibility with < 3.5, so any dev host with a modern
|
||||||
|
# cmake fails `cargo check`/`cargo clippy` on pi-voice with
|
||||||
|
# "Compatibility with CMake < 3.5 has been removed from CMake." The bazel build
|
||||||
|
# already sets this override for the same crate (see the audiopus_sys
|
||||||
|
# annotation in MODULE.bazel); mirror it here so the cargo path works too.
|
||||||
|
[env]
|
||||||
|
CMAKE_POLICY_VERSION_MINIMUM = "3.5"
|
||||||
Reference in New Issue
Block a user