1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Avoid building the Reaper embedded-view demos if no VST2 SDK is available

This commit is contained in:
reuk 2022-07-06 13:23:12 +01:00
parent 6c24b32bcd
commit 853dac4f3f
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -47,6 +47,10 @@ function(_juce_add_pips)
"${CMAKE_CURRENT_SOURCE_DIR}/ARAPluginDemo.h")
endif()
if(NOT TARGET juce_vst2_sdk)
list(REMOVE_ITEM headers "${CMAKE_CURRENT_SOURCE_DIR}/ReaperEmbeddedViewPluginDemo.h")
endif()
foreach(header IN ITEMS ${headers})
juce_add_pip(${header} added_target)
target_link_libraries(${added_target} PUBLIC