From 2c4d5aaf3e311f24c0bb879d6110cf2eb7c1bd16 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sat, 28 Mar 2020 22:15:07 +0100 Subject: [PATCH] Allow VST to match more build types --- vst/cmake/Vst3.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vst/cmake/Vst3.cmake b/vst/cmake/Vst3.cmake index 5aa28432..6e2f62df 100644 --- a/vst/cmake/Vst3.cmake +++ b/vst/cmake/Vst3.cmake @@ -52,12 +52,12 @@ function(plugin_add_vst3sdk NAME) "_NATIVE_WCHAR_T_DEFINED=1" "__wchar_t=wchar_t") endif() - if(${CMAKE_BUILD_TYPE} MATCHES "Debug") - target_compile_definitions("${NAME}" PRIVATE "DEVELOPMENT") - endif() + set(_vst_release_build_types MinSizeRel Release RelWithDebInfo) - if(${CMAKE_BUILD_TYPE} MATCHES "Release") + if(CMAKE_BUILD_TYPE IN_LIST _vst_release_build_types) target_compile_definitions("${NAME}" PRIVATE "RELEASE") + else() + target_compile_definitions("${NAME}" PRIVATE "DEVELOPMENT") endif() endfunction()