Add CMake option for additional compiler definitions (#275)

originally intended for miniaudio options

---------

Co-authored-by: ouwou <26526779+ouwou@users.noreply.github.com>
This commit is contained in:
Ryze
2024-03-03 08:55:12 +00:00
committed by GitHub
parent 1fbc6945d2
commit e8bc60d926

View File

@@ -217,3 +217,8 @@ if (USE_MINIAUDIO)
target_include_directories(abaddon PUBLIC ${MINIAUDIO_INCLUDE_DIR})
target_compile_definitions(abaddon PRIVATE WITH_MINIAUDIO)
endif ()
set(ABADDON_COMPILER_DEFS "" CACHE STRING "Additional compiler definitions")
foreach (COMPILER_DEF IN LISTS ABADDON_COMPILER_DEFS)
target_compile_definitions(abaddon PRIVATE "${COMPILER_DEF}")
endforeach ()