Use the proper way to compile SDL2 in release mode

This commit is contained in:
Cobrand
2018-07-08 14:55:09 +00:00
parent e417938218
commit 9a0afae51f
+1 -1
View File
@@ -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");