SDL_mixer: cmake: allow overriding GME_ZLIB and GME_UNRAR options by user

From 62a41006dd22d1b0bef2a06f04b98264fccce855 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

---
 CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34401114..222cc85e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -701,8 +701,7 @@ if(SDLMIXER_GME)
         set(BUILD_SHARED_LIBS "${SDLMIXER_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 SDLMIXER_VENDORED)
         add_subdirectory(external/libgme EXCLUDE_FROM_ALL)