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

CMake: Link filesystem library to vst3_helper when building with gcc7

This commit is contained in:
reuk 2023-09-18 12:51:27 +01:00
parent 9b041f3d74
commit 3fae79c17c

View file

@ -997,6 +997,10 @@ function(_juce_add_vst3_manifest_helper_target)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(juce_vst3_helper PRIVATE Threads::Threads ${CMAKE_DL_LIBS} juce_recommended_config_flags)
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
target_link_libraries(juce_vst3_helper PRIVATE stdc++fs)
endif()
endfunction()
function(juce_enable_vst3_manifest_step shared_code_target)