mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Build: Update the minimum C++ standard to C++17
This commit is contained in:
parent
e9e39de069
commit
b3a4d54a72
90 changed files with 213 additions and 141 deletions
|
|
@ -317,7 +317,7 @@ function(_juce_add_plugin_wrapper_target format path out_path)
|
|||
_juce_add_plugin_definitions("${target_name}" INTERFACE ${format})
|
||||
_juce_add_standard_defs("${target_name}")
|
||||
|
||||
target_compile_features("${target_name}" INTERFACE cxx_std_14)
|
||||
target_compile_features("${target_name}" INTERFACE cxx_std_17)
|
||||
add_library("juce::${target_name}" ALIAS "${target_name}")
|
||||
|
||||
if(format STREQUAL "AUv3")
|
||||
|
|
@ -327,7 +327,6 @@ function(_juce_add_plugin_wrapper_target format path out_path)
|
|||
_juce_link_frameworks("${target_name}" INTERFACE AudioUnit)
|
||||
endif()
|
||||
elseif(format STREQUAL "AU")
|
||||
target_compile_features("${target_name}" INTERFACE cxx_std_17)
|
||||
target_include_directories("${target_name}" INTERFACE "${out_path}/juce_audio_plugin_client/AU")
|
||||
_juce_link_frameworks("${target_name}" INTERFACE AudioUnit CoreAudioKit)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ function(juce_add_binary_data target)
|
|||
|
||||
target_sources(${target} PRIVATE "${binary_file_names}")
|
||||
target_include_directories(${target} INTERFACE ${juce_binary_data_folder})
|
||||
target_compile_features(${target} PRIVATE cxx_std_14)
|
||||
target_compile_features(${target} PRIVATE cxx_std_17)
|
||||
|
||||
# This fixes an issue where Xcode is unable to find binary data during archive.
|
||||
if(CMAKE_GENERATOR STREQUAL "Xcode")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue