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

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2012-09-07 02:41:38 +0400
committerJason Perkins <starkos@industriousone.com>2012-09-07 02:41:38 +0400
commit4c93fa1acddf17f9980c1142a2bbbf21fcf76eb4 (patch)
tree197544b0705c7153e141f97b11583898d701da06 /src/actions
parent6fa5c3509a7c6fce72891ddea62070add823bfe4 (diff)
Add include for PCH dependencies to makefile
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/make/make_cpp.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua
index fe48cc9..4130683 100644
--- a/src/actions/make/make_cpp.lua
+++ b/src/actions/make/make_cpp.lua
@@ -125,6 +125,9 @@
-- include the dependencies, built by GCC (with the -MMD flag)
_p('-include $(OBJECTS:%%.o=%%.d)')
+ _p('ifneq (,$(PCH))')
+ _p(' -include $(OBJDIR)/$(notdir $(PCH)).d')
+ _p('endif')
end