summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-18 22:34:09 +0800
committerruki <[email protected]>2022-07-18 22:34:09 +0800
commit59a8b59e972a65703bff2024b6b6ed9f66248569 (patch)
tree0811abb5cbed2c818a8ca63a52a0cd9818e79885
parent2e27c208cd6f50df81358d97cf536f46c39449a7 (diff)
support vs2022 for conan
-rw-r--r--xmake/modules/package/manager/conan/install_package.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/conan/install_package.lua b/xmake/modules/package/manager/conan/install_package.lua
index 98bc93d62..bdd2902d6 100644
--- a/xmake/modules/package/manager/conan/install_package.lua
+++ b/xmake/modules/package/manager/conan/install_package.lua
@@ -206,7 +206,15 @@ function main(name, opt)
-- set compiler settings
if opt.plat == "windows" then
- local vsvers = {["2019"] = "16", ["2017"] = "15", ["2015"] = "14", ["2013"] = "12", ["2012"] = "11", ["2010"] = "10", ["2008"] = "9", ["2005"] = "8"}
+ local vsvers = {["2022"] = "17",
+ ["2019"] = "16",
+ ["2017"] = "15",
+ ["2015"] = "14",
+ ["2013"] = "12",
+ ["2012"] = "11",
+ ["2010"] = "10",
+ ["2008"] = "9",
+ ["2005"] = "8"}
local vs = assert(config.get("vs"), "vs not found!")
table.insert(argv, "-s")
table.insert(argv, "compiler=Visual Studio")