From 9a0afae51fde21aeac2344bbc2c43a882a90f4d3 Mon Sep 17 00:00:00 2001 From: Cobrand Date: Sun, 8 Jul 2018 14:55:09 +0000 Subject: [PATCH] Use the proper way to compile SDL2 in release mode --- sdl2-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 75e1bedb..5b182008 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -116,7 +116,7 @@ fn download_sdl2() -> PathBuf { #[cfg(feature = "bundled")] fn compile_sdl2(sdl2_build_path: &Path, target_os: &str) -> PathBuf { let mut cfg = cmake::Config::new(sdl2_build_path); - cfg.define("CMAKE_BUILD_TYPE", "RELEASE"); + cfg.profile("release"); if target_os == "windows-gnu" { cfg.define("VIDEO_OPENGLES", "OFF");