Commit 140b9c7f authored by Marcin Serwin's avatar Marcin Serwin Committed by David Reid

Add compile define for specific backends only in CMake

Fixes https://github.com/mackron/miniaudio/pull/1010#issuecomment-3093830252Signed-off-by: default avatarMarcin Serwin <marcin@serwin.dev>
parent ac8c9082
...@@ -156,6 +156,8 @@ if(MINIAUDIO_NO_NULL) ...@@ -156,6 +156,8 @@ if(MINIAUDIO_NO_NULL)
list(APPEND COMPILE_DEFINES MA_NO_NULL) list(APPEND COMPILE_DEFINES MA_NO_NULL)
endif() endif()
if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS) if(MINIAUDIO_ENABLE_ONLY_SPECIFIC_BACKENDS)
list(APPEND COMPILE_DEFINES MA_ENABLE_ONLY_SPECIFIC_BACKENDS)
if(MINIAUDIO_ENABLE_WASAPI) if(MINIAUDIO_ENABLE_WASAPI)
list(APPEND COMPILE_DEFINES MA_ENABLE_WASAPI) list(APPEND COMPILE_DEFINES MA_ENABLE_WASAPI)
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment