From ce943d1cb2a5d0f6604c201a611b9d8b03ec9d16 Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 1 Nov 2019 18:25:08 +0800 Subject: fix WindowsTargetPlatformVersion & LanguageStandard --- xmake/modules/core/tools/cl.lua | 8 ++++---- xmake/plugins/project/vsxmake/vsproj/Xmake.props | 20 ++++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index c8e20d552..9c60c9e54 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -192,10 +192,10 @@ function nf_language(self, stdname) , gnuxx17 = "-std:c++17" , cxx1z = "-std:c++17" , gnuxx1z = "-std:c++17" - , cxx20 = "-std=c++latest" - , gnuxx20 = "-std=c++latest" - , cxx2a = "-std=c++latest" - , gnuxx2a = "-std=c++latest" + , cxx20 = "-std:c++latest" + , gnuxx20 = "-std:c++latest" + , cxx2a = "-std:c++latest" + , gnuxx2a = "-std:c++latest" } local cxxmaps2 = {} for k, v in pairs(_g.cxxmaps) do diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.props b/xmake/plugins/project/vsxmake/vsproj/Xmake.props index 873644f52..0e5533964 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.props +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.props @@ -47,12 +47,6 @@ false - - 10.0.10240.0 - 10.0.14393.0 - 10.0.17763.0 - 10.0 - v100 v110 @@ -90,9 +84,19 @@ %(PreprocessorDefinitions);$(XmakeDefines) - stdcpp17 - stdcpp14 + stdcpp11 + stdcpp11 + stdcpp14 + stdcpp14 + stdcpp17 + stdcpp17 + stdcpp17 + stdcpp17 + stdcpplatest + stdcpplatest + stdcpplatest + stdcpplatest -- cgit v1.3.1 From 155deaae3ea36460929db9c8f28f2b97a319f54c Mon Sep 17 00:00:00 2001 From: OpportunityLiu Date: Fri, 1 Nov 2019 18:34:42 +0800 Subject: change order --- xmake/plugins/project/vsxmake/vsproj/Xmake.props | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xmake/plugins/project/vsxmake/vsproj/Xmake.props b/xmake/plugins/project/vsxmake/vsproj/Xmake.props index 0e5533964..19cacd77b 100644 --- a/xmake/plugins/project/vsxmake/vsproj/Xmake.props +++ b/xmake/plugins/project/vsxmake/vsproj/Xmake.props @@ -86,16 +86,16 @@ %(PreprocessorDefinitions);$(XmakeDefines) stdcpp11 - stdcpp11 stdcpp14 - stdcpp14 stdcpp17 - stdcpp17 stdcpp17 - stdcpp17 stdcpplatest - stdcpplatest stdcpplatest + stdcpp11 + stdcpp14 + stdcpp17 + stdcpp17 + stdcpplatest stdcpplatest -- cgit v1.3.1