From 1d267a4179f94903eb610d69b34e511c5da5fe81 Mon Sep 17 00:00:00 2001 From: Valentin Ackva Date: Thu, 11 Apr 2024 14:53:05 +0200 Subject: [PATCH] disable vst3 for amr64 macOS --- CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cc9cb6..002db09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,16 @@ cmake_minimum_required(VERSION 3.22) project(BinauralPanner VERSION 0.0.1) set (TARGET_NAME ${PROJECT_NAME}) +if(APPLE) + if(CMAKE_OSX_ARCHITECTURES STREQUAL "arm64") + set(FORMATS_TO_BUILD AU VST3 Standalone) + else() + set(FORMATS_TO_BUILD AU Standalone) + endif() +else() # Maybe add LV2 here for Linux + set(FORMATS_TO_BUILD VST3 Standalone) +endif() + # find_package(JUCE CONFIG REQUIRED) add_subdirectory(modules/JUCE) @@ -20,7 +30,7 @@ juce_add_plugin(${TARGET_NAME} PLUGIN_MANUFACTURER_CODE Juce # A four-character manufacturer id with at least one upper-case character PLUGIN_CODE Dem0 # A unique four-character plugin id with exactly one upper-case character # GarageBand 10.3 requires the first letter to be upper-case, and the remaining letters to be lower-case - FORMATS AU VST3 Standalone # The formats to build. Other valid formats are: AAX Unity VST AU AUv3 + FORMATS ${FORMATS_TO_BUILD} # The formats to build. Other valid formats are: AAX Unity VST AU AUv3 PRODUCT_NAME "Binaural Panner" # The name of the final executable, which can differ from the target name )