1. Premake
  2. Untitled project
  3. premake-dev

Commits

Jason Perkins  committed 3cb6b60

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

  • Participants
  • Parent commits 5b7e01c
  • Branches default

Comments (0)

Files changed (1)

File src/actions/make/make_cpp.lua

View file
 		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