Skip to content

Commit

Permalink
Explicitly opt the base-sdk-vst3 out of unity (#298)
Browse files Browse the repository at this point in the history
CMAKE_UNITY_BUILDS ant the vst3 sdk as used here cause a conflict
so make the subordinate library base-sdk-vst3 always set the
UNITY_BUILD to false
  • Loading branch information
baconpaul authored Aug 20, 2024
1 parent ca17516 commit 56ad8c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/base_sdks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function(guarantee_vst3sdk)
${VST3_SDK_ROOT}/public.sdk/source/vst/vstparameters.cpp
${VST3_SDK_ROOT}/public.sdk/source/vst/utility/stringconvert.cpp
)
# The VST3 SDK doesn't compile with unity builds
set_target_properties(base-sdk-vst3 PROPERTIES UNITY_BUILD FALSE)


target_include_directories(base-sdk-vst3 PUBLIC ${VST3_SDK_ROOT} ${VST3_SDK_ROOT}/public.sdk ${VST3_SDK_ROOT}/pluginterfaces)
target_compile_options(base-sdk-vst3 PUBLIC $<IF:$<CONFIG:Debug>,-DDEVELOPMENT=1,-DRELEASE=1>) # work through steinbergs alternate choices for these
Expand Down

0 comments on commit 56ad8c0

Please sign in to comment.