Fixed VC2010 "attempt to index local 'cfg'" error

This commit is contained in:
Jason Perkins 2012-03-23 10:23:48 -04:00
parent ef032d52cc
commit e563517031

View File

@ -449,8 +449,9 @@
-- I need a project configuration in order to fetch a file's configuration,
-- which would contain any custom build rules. I'm hoping that I can get
-- away with only looking at the first config, and not iterating them all
local cfg = project.getconfig(prj, prj.solution.configurations[1])
local iter = project.eachconfig(prj)
local cfg = iter()
for file in project.eachfile(prj) do
local filecfg = config.getfileconfig(cfg, file.abspath)
if filecfg and filecfg.buildrule then