SDL_mixer: cmake: initialize all *_SHARED variables with ${SDL2MIXER_DEPS_SHARED}

From f725ceaa9d83ec14fb9f28445a594be869fd184f Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Fri, 16 Sep 2022 03:09:51 +0200
Subject: [PATCH] cmake: initialize all *_SHARED variables with
 ${SDL2MIXER_DEPS_SHARED}

---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aedda280..18a1c403 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,7 +121,7 @@ if(SDL2MIXER_MIDI AND NOT (SDL2MIXER_MIDI_TIMIDITY OR SDL2MIXER_MIDI_NATIVE OR S
 endif()
 
 option(SDL2MIXER_OPUS "Enable Opus music" ON)
-cmake_dependent_option(SDL2MIXER_OPUS_SHARED "Dynamically load libopus" ON SDL2MIXER_OPUS OFF)
+cmake_dependent_option(SDL2MIXER_OPUS_SHARED "Dynamically load libopus" "${SDL2MIXER_DEPS_SHARED}" SDL2MIXER_OPUS OFF)
 
 set(sdl2mixer_vorbis_strings STB TREMOR VORBISFILE)
 set(SDL2MIXER_VORBIS "STB" CACHE STRING "Enable OGG Vorbis music")
@@ -143,8 +143,8 @@ endif()
 if(SDL2MIXER_VORBIS STREQUAL "VORBISFILE")
     set(SDL2MIXER_VORBIS_VORBISFILE ON)
 endif()
-cmake_dependent_option(SDL2MIXER_VORBIS_TREMOR_SHARED "Dynamically load tremor library" ON SDL2MIXER_VORBIS_TREMOR OFF)
-cmake_dependent_option(SDL2MIXER_VORBIS_VORBISFILE_SHARED "Dynamically load vorbisfile library" ON SDL2MIXER_VORBIS_VORBISFILE OFF)
+cmake_dependent_option(SDL2MIXER_VORBIS_TREMOR_SHARED "Dynamically load tremor library" "${SDL2MIXER_DEPS_SHARED}" SDL2MIXER_VORBIS_TREMOR OFF)
+cmake_dependent_option(SDL2MIXER_VORBIS_VORBISFILE_SHARED "Dynamically load vorbisfile library" "${SDL2MIXER_DEPS_SHARED}" SDL2MIXER_VORBIS_VORBISFILE OFF)
 
 option(SDL2MIXER_WAVE "Enable streaming WAVE music" ON)