From a4b4168b7415c472b7f0008dec994045573bd4b6 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Tue, 13 Aug 2013 10:55:14 -0400 Subject: Fix detection of PCH files when include paths are used --- src/actions/make/make_cpp.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua index 479e36d..8204f1e 100644 --- a/src/actions/make/make_cpp.lua +++ b/src/actions/make/make_cpp.lua @@ -312,8 +312,8 @@ end end - _p(' PCH = %s', _MAKE.esc(path.getrelative(cfg.location, cfg.pchheader))) - _p(' GCH = $(OBJDIR)/$(notdir $(PCH)).gch', _MAKE.esc(path.getname(cfg.pchheader))) + _p(' PCH = %s', _MAKE.esc(path.getrelative(cfg.location, pch))) + _p(' GCH = $(OBJDIR)/$(notdir $(PCH)).gch') end -- cgit v1.2.3