mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Add compile define for specific backends only in CMake
Fixes https://github.com/mackron/miniaudio/pull/1010#issuecomment-3093830252 Signed-off-by: Marcin Serwin <marcin@serwin.dev>
This commit is contained in:
committed by
David Reid
parent
ac8c908283
commit
140b9c7f9f
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user