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

MinGW: Avoid building VST3 helper tool with older versions of MinGW

This commit is contained in:
reuk 2023-06-06 14:03:55 +01:00
parent 3604accc0f
commit 399276b5b3
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -971,6 +971,10 @@ function(_juce_add_vst3_manifest_helper_target)
target_compile_options(juce_vst3_helper PRIVATE -fobjc-arc)
endif()
if(MSYS OR MINGW)
target_link_options(juce_vst3_helper PRIVATE -municode)
endif()
set_target_properties(juce_vst3_helper PROPERTIES BUILD_WITH_INSTALL_RPATH ON)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
@ -1019,6 +1023,8 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
LIBRARY_OUTPUT_DIRECTORY "${output_path}/Contents/${JUCE_TARGET_ARCHITECTURE}-linux")
endif()
# The VST3 helper tool requires <filesystem> which is broken before mingw version 9
if((NOT (MSYS OR MINGW)) OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 9)
# Add a target for the helper tool
_juce_add_vst3_manifest_helper_target()
@ -1034,6 +1040,7 @@ function(_juce_set_plugin_target_properties shared_code_target kind)
-path "${output_path}"
-output "${output_path}/Contents/Resources/moduleinfo.json"
VERBATIM)
endif()
_juce_set_copy_properties(${shared_code_target} ${target_name} "${output_path}" JUCE_VST3_COPY_DIR)
elseif(kind STREQUAL "VST")