summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-12 15:41:45 +0800
committerruki <[email protected]>2017-03-12 15:41:45 +0800
commit1809adb50ac1fa4caa3e95d076952d73cd1ac8b1 (patch)
tree9689baa8afbc8103115dc0ca97e76912ce1fe5bd
parent0a0352dfcab823707569373bc8204f2976bc37b8 (diff)
fix make vs2017 project bug
-rwxr-xr-xxmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
index a188ddfbe..6e8423a92 100755
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -149,11 +149,11 @@ function _make_configurations(vcxprojfile, vsinfo, target, vcxprojdir)
-- the versions
local versions =
{
- vs2010 = '10'
- , vs2012 = '11'
- , vs2013 = '12'
- , vs2015 = '14'
- , vs2017 = '15'
+ vs2010 = '100'
+ , vs2012 = '110'
+ , vs2013 = '120'
+ , vs2015 = '140'
+ , vs2017 = '141'
}
-- make ProjectConfigurations
@@ -176,7 +176,7 @@ function _make_configurations(vcxprojfile, vsinfo, target, vcxprojdir)
-- make Configuration
vcxprojfile:enter("<PropertyGroup Condition=\"\'%$(Configuration)|%$(Platform)\'==\'$(mode)|Win32\'\" Label=\"Configuration\">")
vcxprojfile:print("<ConfigurationType>%s</ConfigurationType>", assert(configuration_types[target:get("kind")]))
- vcxprojfile:print("<PlatformToolset>v%s0</PlatformToolset>", assert(versions["vs" .. vsinfo.vstudio_version]))
+ vcxprojfile:print("<PlatformToolset>v%s</PlatformToolset>", assert(versions["vs" .. vsinfo.vstudio_version]))
vcxprojfile:print("<CharacterSet>MultiByte</CharacterSet>")
vcxprojfile:leave("</PropertyGroup>")