From 140b9c7f9fb6a07469217e8db38abde0a0691c1e Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Sun, 20 Jul 2025 17:03:50 +0200 Subject: [PATCH] Add compile define for specific backends only in CMake Fixes https://github.com/mackron/miniaudio/pull/1010#issuecomment-3093830252 Signed-off-by: Marcin Serwin --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b9a85442..283522a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,6 +156,8 @@ if(MINIAUDIO_NO_NULL) list(APPEND COMPILE_DEFINES MA_NO_NULL) endif() if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS) + list(APPEND COMPILE_DEFINES MA_ENABLE_ONLY_SPECIFIC_BACKENDS) + if(MINIAUDIO_ENABLE_WASAPI) list(APPEND COMPILE_DEFINES MA_ENABLE_WASAPI) endif()