Make this work on Visual Studio prior to VS2013 too.
function m.preferredToolArchitecture(prj)
+ if _ACTION >= "vs2013" then
if prj.preferredtoolarchitecture == p.X86_64 then
m.element("PreferredToolArchitecture", nil, 'x64')
elseif prj.preferredtoolarchitecture == p.X86 then
m.element("PreferredToolArchitecture", nil, 'x86')
end
+ else
+ if prj.preferredtoolarchitecture == p.X86_64 then
+ m.element("UseNativeEnvironment", nil, 'true')
+ end
+ end
end
