From fbb5368f71abc3383079f2e304b8b44cd1f7b7e3 Mon Sep 17 00:00:00 2001 From: Agoston Szepessy Date: Thu, 22 Feb 2024 22:58:34 -0800 Subject: [PATCH 1/2] Bump minimum cmake dependency to 0.1.4 The `profile()` function used in `build.rs` was added starting with version 0.1.4. Because of this, building projects that depend on SDL2 with `-Zminimal-versions` fails. --- sdl2-sys/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index 47b24d35f2..0e46dfc164 100644 --- a/sdl2-sys/Cargo.toml +++ b/sdl2-sys/Cargo.toml @@ -32,7 +32,7 @@ version = "^0.2.12" optional = true [build-dependencies.cmake] -version = "^0.1" +version = "^0.1.4" optional = true [build-dependencies.flate2] From 04cb0d4d9d179d7f083ca0864f6fe526d06d7c86 Mon Sep 17 00:00:00 2001 From: Agoston Szepessy Date: Thu, 22 Feb 2024 23:32:53 -0800 Subject: [PATCH 2/2] Bump to 0.1.47 to make it work with VS 2022 --- sdl2-sys/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2-sys/Cargo.toml b/sdl2-sys/Cargo.toml index 0e46dfc164..3a6b47ca40 100644 --- a/sdl2-sys/Cargo.toml +++ b/sdl2-sys/Cargo.toml @@ -32,7 +32,7 @@ version = "^0.2.12" optional = true [build-dependencies.cmake] -version = "^0.1.4" +version = "^0.1.47" optional = true [build-dependencies.flate2]