summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/tools/cmake.lua1
-rw-r--r--xmake/modules/private/action/trybuild/cmake.lua1
2 files changed, 0 insertions, 2 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 684c522e8..323219c72 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -711,7 +711,6 @@ end
-- get cmake generator for msvc
function _get_cmake_generator_for_msvc(package)
local vs = _get_msvc(package):config("vs") or config.get("vs")
- assert(vsvers[vs], "Unknown Visual Studio version: '" .. tostring(vs) .. "' set in project.")
return "Visual Studio " .. toolchain_utils.get_vsver(vs) .. " " .. vs
end
diff --git a/xmake/modules/private/action/trybuild/cmake.lua b/xmake/modules/private/action/trybuild/cmake.lua
index 377c9c66e..c5b807fb9 100644
--- a/xmake/modules/private/action/trybuild/cmake.lua
+++ b/xmake/modules/private/action/trybuild/cmake.lua
@@ -396,7 +396,6 @@ end
-- get cmake generator for msvc
function _get_cmake_generator_for_msvc()
local vs = _get_msvc():config("vs") or config.get("vs")
- assert(vsvers[vs], "Unknown Visual Studio version: '" .. tostring(vs) .. "' set in project.")
return "Visual Studio " .. toolchain_utils.get_vsver(vs) .. " " .. vs
end