diff options
author | Ryze <50497128+ryze312@users.noreply.github.com> | 2024-03-03 08:55:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 03:55:12 -0500 |
commit | e8bc60d9263e5b0dd213bcc85f9655ebebcedf49 (patch) | |
tree | c21ab38ab211c4529cb5f0c2038df23779ff2b67 /CMakeLists.txt | |
parent | 1fbc6945d2006bfc07a9a66eb64a134c855d8d61 (diff) | |
download | abaddon-portaudio-e8bc60d9263e5b0dd213bcc85f9655ebebcedf49.tar.gz abaddon-portaudio-e8bc60d9263e5b0dd213bcc85f9655ebebcedf49.zip |
Add CMake option for additional compiler definitions (#275)
originally intended for miniaudio options
---------
Co-authored-by: ouwou <26526779+ouwou@users.noreply.github.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 24074d7..d1b56fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 () |