Use c++latest on MSVC

This commit is contained in:
Joshua Ashton 2020-08-07 01:26:46 +01:00
parent 17cd95ebb9
commit 38a5064917
1 changed files with 2 additions and 1 deletions

View File

@ -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')