summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mathers <michael.p.mathers@live.com>2017-09-09 00:41:16 +0930
committerMichael Mathers <michael.p.mathers@live.com>2017-09-09 00:41:16 +0930
commit6aaef03a50206b238b728fbb33d540edd3567424 (patch)
treeca4495461243e65b87bd17cfd643b17db6d086ad
parent956ba479345296af1d8a5bffe5e1e2f29889280b (diff)
downloadMPC-6aaef03a50206b238b728fbb33d540edd3567424.tar.gz
Added ISO C++ Standard setting to vc10 template
Added 'LanguageStandard' as a new setting that can be set for vs2017.
-rw-r--r--docs/templates/vc10.txt1
-rw-r--r--templates/vc10.mpd3
2 files changed, 4 insertions, 0 deletions
diff --git a/docs/templates/vc10.txt b/docs/templates/vc10.txt
index 3606c8cb..861880a6 100644
--- a/docs/templates/vc10.txt
+++ b/docs/templates/vc10.txt
@@ -79,6 +79,7 @@ intdir = Specify this to override the default intermediate directory.
keycontainer = Specify a key container to sign an assembly.
keyfile = Specify key or key pair to sign an assembly. If set, embedmanifest defaults to false.
largeaddressaware = Tells the linker that the application can handle addresses larger than 2 gigabytes.
+languagestandard = Which version of ISO C++ standard to compile against (stdcpp14, stdcpp17, stdcpplatest) - Visual Studio 2017+ only
lib_options = Additional command-line options for the librarian.
link_options = Additional command-line options for the linker.
linkerrorreporting = Allows you to provide linker internal compiler error (ICE) information directly to the Visual C++ team (PromptImmediately, QueueForNextLogin, SendErrorReport, NoErrorReport).
diff --git a/templates/vc10.mpd b/templates/vc10.mpd
index f3ffcc21..3eaf1e5f 100644
--- a/templates/vc10.mpd
+++ b/templates/vc10.mpd
@@ -231,6 +231,9 @@
<%if(OpenMP || OpenMPSupport)%>
<OpenMPSupport>true</OpenMPSupport>
<%endif%>
+<%if(LanguageStandard)%>
+ <LanguageStandard><%LanguageStandard%></LanguageStandard>
+<%endif%>
<%if(pch_header)%>
<PrecompiledHeader>Use</PrecompiledHeader>
<%if(pch_header_output)%>