From 72a6203849a1b128d360a7a14fff99b167709976 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 26 Apr 2026 09:12:46 +1000 Subject: [PATCH] Fix build errors with MA_NO_RUNTIME_LINKING. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4725416b..32acacac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -706,6 +706,7 @@ if(NOT MINIAUDIO_NO_DEVICEIO) target_include_directories(miniaudio_backend_template PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/extras/backends/template) target_compile_options (miniaudio_backend_template PRIVATE ${COMPILE_OPTIONS}) target_compile_definitions(miniaudio_backend_template PRIVATE ${COMPILE_DEFINES}) + target_compile_definitions(miniaudio_backend_template PRIVATE MA_ENABLE_ONLY_SPECIFIC_BACKENDS) # This just disables all backends so that the build works with MA_NO_RUNTIME_LINKING enabled. endif()