Use c++latest on MSVC
This commit is contained in:
parent
17cd95ebb9
commit
38a5064917
|
@ -5,8 +5,9 @@ project('FeatherMC', ['c', 'cpp'], version : '0.0', meson_version : '>= 0.55', d
|
|||
add_project_arguments('-DNOMINMAX', language : 'cpp')
|
||||
|
||||
feather_compiler = meson.get_compiler('cpp')
|
||||
feather_cpp_std = 'c++17'
|
||||
feather_platform = target_machine.system()
|
||||
feather_msvc = feather_compiler.get_id() == 'msvc'
|
||||
feather_cpp_std = feather_msvc ? 'c++latest' : 'c++17'
|
||||
|
||||
if feather_compiler.get_id() == 'msvc'
|
||||
add_project_arguments('/std:' + feather_cpp_std, language : 'cpp')
|
||||
|
|
Loading…
Reference in New Issue