Skip to content

Commit f4c747f

Browse files
author
haenkel
committed
Make VST3 skippable in cmake
- adds build option `-DDEXED_SKIP_VST3=1` - and don't turn on `-Werror` just yet see issues #322 and #340
1 parent 1df9a58 commit f4c747f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ target_compile_options(${PROJECT_NAME} PUBLIC
5252
)
5353
elseif(UNIX AND NOT APPLE)
5454
target_compile_options(${PROJECT_NAME} PUBLIC
55-
-Werror
55+
#-Werror
5656
-Wno-deprecated-declarations
5757
-Wno-unused-value
5858
)

Source/CMakeLists.txt

+12-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,22 @@ juce_add_plugin("${BaseTargetName}"
1313
COPY_PLUGIN_AFTER_BUILD FALSE
1414
PLUGIN_MANUFACTURER_CODE DGSB
1515
PLUGIN_CODE Dexd
16-
FORMATS AU VST3 Standalone
1716
PRODUCT_NAME "Dexed"
1817
DESCRIPTION "Dexed FM Synth"
1918
)
2019

20+
set(DEXED_JUCE_FORMATS Standalone)
21+
22+
if(NOT DEXED_SKIP_VST3)
23+
list(APPEND DEXED_JUCE_FORMATS VST3)
24+
endif()
25+
26+
if (APPLE)
27+
list(APPEND DEXED_JUCE_FORMATS AU)
28+
endif()
29+
30+
message(STATUS "Building Dexed in formats: ${DEXED_JUCE_FORMATS}")
31+
2132
juce_generate_juce_header(${PROJECT_NAME})
2233

2334
target_sources(${BaseTargetName} PRIVATE

0 commit comments

Comments
 (0)