From ebf2555820ce7f28a8f25f98aae4098ea514ee86 Mon Sep 17 00:00:00 2001 From: Hossein Zahaki Date: Tue, 15 Oct 2024 09:03:41 -0600 Subject: [PATCH] Update CMakeLists.txt --- sudio/io/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sudio/io/CMakeLists.txt b/sudio/io/CMakeLists.txt index f892d14..dfc073d 100644 --- a/sudio/io/CMakeLists.txt +++ b/sudio/io/CMakeLists.txt @@ -12,12 +12,12 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/miniaudio") GIT_REPOSITORY https://github.com/mackron/miniaudio.git GIT_TAG 0.11.21 ) - FetchContent_MakeAvailable(miniaudio) + set(MINIAUDIO_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/miniaudio/extras/miniaudio_split") else() message(STATUS "Using existing MiniAudio in /miniaudio") + set(MINIAUDIO_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/miniaudio/extras/miniaudio_split") endif() -set(MINIAUDIO_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/miniaudio/extras/miniaudio_split") set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build PortAudio as a static library") set(PA_DISABLE_INSTALL ON CACHE BOOL "Disable installation of PortAudio")