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>2012-09-07 02:41:38 +0400
committerJason Perkins <starkos@industriousone.com>2012-09-07 02:41:38 +0400
commitb872c9f9b03028386384224aed4c21e18f862d51 (patch)
tree197544b0705c7153e141f97b11583898d701da06
parent52c2b274c6bfdc90635fa227674d7049540f692f (diff)
Add include for PCH dependencies to makefile
-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