From 9328bc7889a8cd0bfb3e26ead4c38f49fc6496d7 Mon Sep 17 00:00:00 2001 From: MuleDad <37345538+MuleDad@users.noreply.github.com> Date: Tue, 7 Oct 2025 07:11:26 -0700 Subject: [PATCH] Update JUCE to 8.0.10 to fix macOS 15 SDK build --- cmake.plugin.txt | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmake.plugin.txt b/cmake.plugin.txt index 80690c7f..44337de5 100644 --- a/cmake.plugin.txt +++ b/cmake.plugin.txt @@ -21,15 +21,21 @@ include(FetchContent) if(YSFX_PLUGIN_USE_SYSTEM_JUCE) find_package(JUCE REQUIRED) else() + include(FetchContent) + + # JUCE >= 8 includes the ScreenCaptureKit change required for macOS 15 + # and works with Xcode 16 / Sequoia. + set(FetchContent_QUIET OFF) FetchContent_Declare(juce - URL "https://github.com/juce-framework/JUCE/archive/refs/tags/7.0.0.tar.gz" - URL_HASH "SHA512=0347380fce37eae58a2cfd2d14cf3d8025b37e8de87104656cc0699a8de914762199d4e6a214d24afd99cee548ec6aec198a7a04d804a97d0f4ceed49bf9a969") + GIT_REPOSITORY https://github.com/juce-framework/JUCE.git + GIT_TAG 8.0.10 + DOWNLOAD_EXTRACT_TIMESTAMP TRUE + GIT_PROGRESS TRUE + GIT_SHALLOW FALSE + ) - FetchContent_GetProperties(juce) - if(NOT juce_POPULATED) - FetchContent_Populate(juce) - add_subdirectory("${juce_SOURCE_DIR}" "${juce_BINARY_DIR}" EXCLUDE_FROM_ALL) - endif() + # Modern FetchContent API (avoids the CMP0169 warning) + FetchContent_MakeAvailable(juce) endif() if(YSFX_PLUGIN_VST3_SDK_PATH)