From 33668fa3c2e78afe71493aea09ca1d24d4c3dcfe Mon Sep 17 00:00:00 2001
From: Andrei Sabalenka <[EMAIL REDACTED]>
Date: Fri, 6 Sep 2024 01:47:07 +0300
Subject: [PATCH] cmake: allow overriding GME_ZLIB and GME_UNRAR options by
user
(cherry picked from commit 62a41006dd22d1b0bef2a06f04b98264fccce855)
---
CMakeLists.txt | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc37b28f..b14bb244 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -595,8 +595,7 @@ if(SDL2MIXER_GME)
set(BUILD_SHARED_LIBS "${SDL2MIXER_GME_SHARED}")
set(ENABLE_UBSAN OFF)
set(BUILD_FRAMEWORK OFF)
- set(GME_ZLIB OFF)
- set(GME_UNRAR OFF)
+ option(GME_ZLIB "Enable GME to support compressed sound formats" OFF)
message(STATUS "Using vendored libgme")
sdl_check_project_in_subfolder(external/libgme libgme SDL2MIXER_VENDORED)
add_subdirectory(external/libgme EXCLUDE_FROM_ALL)