Skip to content

Commit

Permalink
CMake: Always remove old moduleinfo.json, even if AUTO_MANIFEST is off
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Dec 7, 2023
1 parent 8aa9b01 commit 9c5d86c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extras/Build/CMake/JUCEUtils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9c5d86c

Please sign in to comment.