From 81d7e448f5a6109c5553306e739ead47ce4bbb86 Mon Sep 17 00:00:00 2001 From: Matt Tytel Date: Fri, 5 Jul 2024 12:57:16 -0400 Subject: [PATCH] Newer VST3 SDKs need timer.cpp on linux. --- cmake/base_sdks.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/base_sdks.cmake b/cmake/base_sdks.cmake index 64bd1e46..98a27b9a 100644 --- a/cmake/base_sdks.cmake +++ b/cmake/base_sdks.cmake @@ -132,8 +132,8 @@ function(guarantee_vst3sdk) ${VST3_SDK_ROOT}/public.sdk/source/common/*.cpp ${VST3_SDK_ROOT}/pluginterfaces/base/*.cpp ) - if( UNIX AND NOT APPLE ) - # Sigh - ${VST3_SDK_ROOT} ships with non-working code if you has it + if (UNIX AND NOT APPLE AND ${SDKVERSION} VERSION_LESS 3.7.9) + # Sigh - VST3 SDK before 3.7.9 ships with non-working timer code get_filename_component(full_path_test_cpp ${VST3_SDK_ROOT}/base/source/timer.cpp ABSOLUTE) list(REMOVE_ITEM VST3_GLOB "${full_path_test_cpp}") endif()