From 2b05a503e4e9a3eacabb2154c8c5319ce776c39d Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 26 Apr 2005 08:51:45 -0400 Subject: BUG: Added inclusion of pre-build rules for custom targets. --- Source/cmLocalUnixMakefileGenerator2.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 124d6ba..9de8f4d 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -789,8 +789,10 @@ cmLocalUnixMakefileGenerator2 std::vector commands; std::vector depends; - // Utility targets store their rules in post-build commands. + // Utility targets store their rules in pre- and post-build commands. + this->AppendCustomDepends(depends, target.GetPreBuildCommands()); this->AppendCustomDepends(depends, target.GetPostBuildCommands()); + this->AppendCustomCommands(commands, target.GetPreBuildCommands()); this->AppendCustomCommands(commands, target.GetPostBuildCommands()); // Add dependencies on targets that must be built first. -- cgit v0.12