From fdc026f8110d11b5a53fedf93d517316b57f4332 Mon Sep 17 00:00:00 2001 From: Jatin Chowdhury Date: Tue, 25 May 2021 16:44:48 -0700 Subject: [PATCH] Fix Mac release compilation --- ChowCentaur/headless/CMakeLists.txt | 1 + mac_builds.sh | 2 +- modules/cmake/WarningFlags.cmake | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChowCentaur/headless/CMakeLists.txt b/ChowCentaur/headless/CMakeLists.txt index ef683fa..20553cd 100644 --- a/ChowCentaur/headless/CMakeLists.txt +++ b/ChowCentaur/headless/CMakeLists.txt @@ -23,6 +23,7 @@ target_include_directories(Centaur_Headless PRIVATE ../../modules/RTNeural/modul target_link_libraries(Centaur_Headless PUBLIC BinaryData ChowCentaur + warning_flags ) set_target_properties(Centaur_Headless PROPERTIES CXX_VISIBILITY_PRESET hidden) diff --git a/mac_builds.sh b/mac_builds.sh index 38ff514..2b7289c 100644 --- a/mac_builds.sh +++ b/mac_builds.sh @@ -7,7 +7,7 @@ rm -Rf build/ rm -Rf bin/*Mac* # set up build VST -VST_PATH=~/Developer/VST2_SDK/ +VST_PATH=~/Developer/Plugin_SDKs/VST2_SDK/ sed -i '' "s~# juce_set_vst2_sdk_path.*~juce_set_vst2_sdk_path(${VST_PATH})~" CMakeLists.txt # cmake new builds diff --git a/modules/cmake/WarningFlags.cmake b/modules/cmake/WarningFlags.cmake index a773876..bcaaf6f 100644 --- a/modules/cmake/WarningFlags.cmake +++ b/modules/cmake/WarningFlags.cmake @@ -26,6 +26,8 @@ elseif((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") OR (CMAKE_CXX_COMPILER_ID STREQU # For XSIMD -Wno-cast-align -Wno-shadow -Wno-implicit-int-conversion -Wno-zero-as-null-pointer-constant + # Older OSX SDKs don't support aligned allocation + -fno-aligned-allocation ) elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") target_compile_options(warning_flags INTERFACE