diff options
author | Oliver Schneider <oliver@assarbad.net> | 2022-01-23 03:21:28 +0300 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2022-01-23 03:21:28 +0300 |
commit | 2d36609e8ab587519f30e7adfeae85801815a154 (patch) | |
tree | 35ec9d06ec077e6bf718457f2047ce2d1496e02d /premake4.lua | |
parent | d49d821dc0340c412e1d0f9fd02cd82ffd3613f4 (diff) |
Arranging for VS2022 support
--HG--
branch : WDS-build
Diffstat (limited to 'premake4.lua')
-rw-r--r-- | premake4.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/premake4.lua b/premake4.lua index cfc3dda..331d0b9 100644 --- a/premake4.lua +++ b/premake4.lua @@ -202,9 +202,9 @@ do -- Name the project files after their VS version local orig_getbasename = premake.project.getbasename premake.project.getbasename = function(prjname, pattern) - -- The below is used to insert the .vs(8|9|10|11|12|14|15) into the file names for projects and solutions + -- The below is used to insert the .vs(8|9|10|11|12|14|15|16|17) into the file names for projects and solutions if _ACTION then - name_map = {vs2002 = "vs7", vs2003 = "vs7_1", vs2005 = "vs8", vs2008 = "vs9", vs2010 = "vs10", vs2012 = "vs11", vs2013 = "vs12", vs2015 = "vs14", vs2017 = "vs15", vs2019 = "vs16"} + name_map = {vs2002 = "vs7", vs2003 = "vs7_1", vs2005 = "vs8", vs2008 = "vs9", vs2010 = "vs10", vs2012 = "vs11", vs2013 = "vs12", vs2015 = "vs14", vs2017 = "vs15", vs2019 = "vs16", vs2022 = "vs17"} if name_map[_ACTION] then pattern = pattern:gsub("%%%%", "%%%%." .. name_map[_ACTION]) else |