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-20 18:47:23 +0400
committerJason Perkins <starkos@industriousone.com>2013-08-20 18:47:23 +0400
commita85980c52496306f8f4ac885a3e9da81d0c7179d (patch)
treef9182635fd1fad14ec9cb39c97ec58f595076aba /src/actions
parent55a0c026fceee2bdaa182d9b816e608c0ae10e9b (diff)
Find PCH on include dirs even if project has a location set
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/make/make_cpp.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua
index 2b2c763..b3630f2 100644
--- a/src/actions/make/make_cpp.lua
+++ b/src/actions/make/make_cpp.lua
@@ -305,7 +305,11 @@
local pch = cfg.pchheader
for _, incdir in ipairs(cfg.includedirs) do
- local testname = path.join(incdir, pch)
+
+ -- convert this back to an absolute path for os.isfile()
+ local abspath = path.getabsolute(path.join(cfg.project.location, incdir))
+
+ local testname = path.join(abspath, pch)
if os.isfile(testname) then
pch = path.getrelative(cfg.location, testname)
break