Fixed how C++ standard is passed to VS/IntelliSense.
This commit is contained in:
parent
18293fdcf7
commit
6326454729
@ -1,9 +1,9 @@
|
||||
{%- set ms_cxx_standard = {
|
||||
'c++14': 'stdcpp14',
|
||||
'c++17': 'stdcpp17',
|
||||
'c++20': 'stdcpp20',
|
||||
'c++23': 'stdcpplatest',
|
||||
'c++26': 'stdcpplatest'}[project.cxx_standard] | default('stdcpp14')
|
||||
'c++14': 'c++14',
|
||||
'c++17': 'c++17',
|
||||
'c++20': 'c++20',
|
||||
'c++23': 'c++latest',
|
||||
'c++26': 'c++latest'}[project.cxx_standard] | default('c++14')
|
||||
-%}
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="17.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
@ -59,7 +59,7 @@
|
||||
<GenerateDebugInformation>{{ build_type != 'release' and 'true' or 'false' }}</GenerateDebugInformation>
|
||||
<AdditionalIncludeDirectories>{{ get_target_property(build_type, target.name, 'CPPPATH') | join(';') }};%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<MsExtensions>false</MsExtensions>
|
||||
<CppLanguageStd>{{ ms_cxx_standard }}</CppLanguageStd>
|
||||
<AdditionalOptions>/std:{{ ms_cxx_standard }}</AdditionalOptions>
|
||||
</ClCompile>
|
||||
</ItemDefinitionGroup>
|
||||
{%- endfor %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user