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:
Ryzeandouwou authored and GitHub committed 2024-03-03 03:55:12 -05:00
1 parent 1fbc6945d2
commit e8bc60d926
1 file changed
+5
+5
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 ()