Skip to content

Commit

Permalink
improve msvc envs
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Feb 22, 2024
1 parent 48ab510 commit 17a95b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ end

-- get msvc run environments
function _get_msvc_runenvs(package)
return os.joinenvs(_get_msvc(package):runenvs())
local envs = {}
for k, v in pairs(os.joinenvs(_get_msvc(package):runenvs())) do
envs[k] = v
if k:upper() ~= k then
envs[k:upper()] = ""
end
end
return envs
end

-- get vs arch
Expand Down

0 comments on commit 17a95b0

Please sign in to comment.