SDL_mixer: minimal fix for cmake build flags

From b39496a5749b37ac219dc1d2661bf573a80694f1 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 23 May 2022 14:03:32 +0300
Subject: [PATCH] minimal fix for cmake build flags

---
 .github/workflows/main.yml | 1 +
 CMakeLists.txt             | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index d7b5e3b8..a1dcf5ec 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -71,6 +71,7 @@ jobs:
       run: |
         cmake -B build \
           -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
+          -DCMAKE_BUILD_TYPE=Release \
           -DCMAKE_VERBOSE_MAKEFILE=ON \
           -DSUPPORT_FLAC=ON \
           -DSUPPORT_OGG=ON \
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1012cef3..33610f10 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -147,7 +147,7 @@ if (SUPPORT_OGG OR SUPPORT_FLAC OR SUPPORT_OPUS)
 endif()
 
 if (SUPPORT_FLAC)
-    target_compile_definitions(SDL2_mixer PRIVATE -DMUSIC_FLAC)
+    target_compile_definitions(SDL2_mixer PRIVATE -DMUSIC_FLAC_LIBFLAC)
     add_subdirectory(external/flac)
     target_include_directories(SDL2_mixer PRIVATE external/flac/include)
     target_link_libraries(SDL2_mixer PRIVATE FLAC)