From 63264547294596950816c2ba45aa85afc9665752 Mon Sep 17 00:00:00 2001
From: Patrick Wuttke
Date: Tue, 8 Jul 2025 16:50:59 +0200
Subject: [PATCH] Fixed how C++ standard is passed to VS/IntelliSense.
---
.../vs_project_files/target.vcxproj.jinja | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/util/vs_project_template/vs_project_files/target.vcxproj.jinja b/util/vs_project_template/vs_project_files/target.vcxproj.jinja
index 22f0e27..8451865 100644
--- a/util/vs_project_template/vs_project_files/target.vcxproj.jinja
+++ b/util/vs_project_template/vs_project_files/target.vcxproj.jinja
@@ -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')
-%}
@@ -59,7 +59,7 @@
{{ build_type != 'release' and 'true' or 'false' }}
{{ get_target_property(build_type, target.name, 'CPPPATH') | join(';') }};%(AdditionalIncludeDirectories)
false
- {{ ms_cxx_standard }}
+ /std:{{ ms_cxx_standard }}
{%- endfor %}