Leave PCH header path alone if no match is found in includedirs

This commit is contained in:
Jason Perkins 2013-08-15 13:44:54 -04:00
parent 411675d356
commit 3b8a115db8

View File

@ -434,12 +434,12 @@
for _, incdir in ipairs(cfg.includedirs) do
local testname = path.join(incdir, pch)
if os.isfile(testname) then
pch = testname
pch = path.getrelative(cfg.location, testname)
break
end
end
_x(' PCH = %s', path.getrelative(cfg.location, pch))
_x(' PCH = %s', pch)
_p(' GCH = $(OBJDIR)/$(notdir $(PCH)).gch')
end