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

CMake: Always remove old moduleinfo.json, even if AUTO_MANIFEST is off

This commit is contained in:
reuk 2023-12-07 13:26:25 +00:00
parent 8aa9b01264
commit 9c5d86cb4f
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -1057,7 +1057,6 @@ function(juce_enable_vst3_manifest_step shared_code_target)
# Use the helper tool to write out the moduleinfo.json
add_custom_command(TARGET ${target_name} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E remove -f "${product}/Contents/moduleinfo.json"
COMMAND ${CMAKE_COMMAND} -E make_directory "${product}/Contents/Resources"
COMMAND juce_vst3_helper
-create
@ -1116,6 +1115,12 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
get_target_property(vst3_auto_manifest ${shared_code_target} JUCE_VST3_AUTO_MANIFEST)
add_custom_command(TARGET ${target_name} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E echo "removing moduleinfo.json"
COMMAND ${CMAKE_COMMAND} -E remove -f
"${output_path}/Contents/moduleinfo.json"
"${output_path}/Contents/Resources/moduleinfo.json")
if(vst3_auto_manifest)
juce_enable_vst3_manifest_step(${shared_code_target})
endif()