summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-07-01 22:27:57 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2023-07-01 22:27:57 -0400
commit060e79ff2af65c46b5a53606784345b570118f2b (patch)
tree3fa682d84a3d96e7ee0e3bb800f0d55ddc788322
parentec6f18ff1204889afd63f08f255d00ae3a1ef12b (diff)
downloadabaddon-portaudio-060e79ff2af65c46b5a53606784345b570118f2b.tar.gz
abaddon-portaudio-060e79ff2af65c46b5a53606784345b570118f2b.zip
search for system miniaudio.h too
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de97c32..d7f8687 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,6 +165,11 @@ if (${ENABLE_NOTIFICATION_SOUNDS})
endif ()
if (USE_MINIAUDIO)
- target_include_directories(abaddon PUBLIC subprojects/miniaudio)
+ find_path(MINIAUDIO_INCLUDE_DIR
+ NAMES miniaudio.h
+ HINTS subprojects
+ PATH_SUFFIXES miniaudio
+ REQUIRED)
+ target_include_directories(abaddon PUBLIC ${MINIAUDIO_INCLUDE_DIR})
target_compile_definitions(abaddon PRIVATE WITH_MINIAUDIO)
endif ()