From e7581fa947b08c37a49f56d0ba6ce086269400a9 Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 27 Jun 2022 10:58:47 +0100 Subject: [PATCH] CMake: Silently disable AAX builds on unsupported platforms --- extras/Build/CMake/JUCEModuleSupport.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extras/Build/CMake/JUCEModuleSupport.cmake b/extras/Build/CMake/JUCEModuleSupport.cmake index ac2a0fe3a5..5fe0323a9c 100644 --- a/extras/Build/CMake/JUCEModuleSupport.cmake +++ b/extras/Build/CMake/JUCEModuleSupport.cmake @@ -249,7 +249,11 @@ function(_juce_get_platform_plugin_kinds out) endif() if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS" AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android") - list(APPEND result AAX Unity VST VST3 LV2) + list(APPEND result Unity VST VST3 LV2) + endif() + + if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "Windows") + list(APPEND result AAX) endif() set(${out} ${result} PARENT_SCOPE)