Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2013-08-15 21:39:54 +0400
committerJason Perkins <starkos@industriousone.com>2013-08-15 21:39:54 +0400
commitc964fef63467b5b85b5ff59898f50f436e6290b2 (patch)
treeb52498ecc7829b74ab2afaa5fba202c6f0bb34cb
parent40bd2a4a26c960facd22ec61fb31547754f6f459 (diff)
Leave PCH header path alone if no match is found in includedirs
-rw-r--r--src/actions/make/make_cpp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua
index 8204f1e..2b2c763 100644
--- a/src/actions/make/make_cpp.lua
+++ b/src/actions/make/make_cpp.lua
@@ -307,12 +307,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
- _p(' PCH = %s', _MAKE.esc(path.getrelative(cfg.location, pch)))
+ _p(' PCH = %s', _MAKE.esc(pch))
_p(' GCH = $(OBJDIR)/$(notdir $(PCH)).gch')
end