Skip to content

Commit

Permalink
Add CMake option for additional compiler definitions (#275)
Browse files Browse the repository at this point in the history
originally intended for miniaudio options

---------

Co-authored-by: ouwou <[email protected]>
  • Loading branch information
ryze312 and ouwou authored Mar 3, 2024
1 parent 1fbc694 commit e8bc60d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()

0 comments on commit e8bc60d

Please sign in to comment.