summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-26 12:51:45 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-26 12:51:45 (GMT)
commit2b05a503e4e9a3eacabb2154c8c5319ce776c39d (patch)
tree84ddb31c7d0782cf6c39deec9d994a2f0147d689 /Source
parent8e38fd879280b743cc5973a45b6b583d68d9ca24 (diff)
downloadCMake-2b05a503e4e9a3eacabb2154c8c5319ce776c39d.zip
CMake-2b05a503e4e9a3eacabb2154c8c5319ce776c39d.tar.gz
CMake-2b05a503e4e9a3eacabb2154c8c5319ce776c39d.tar.bz2
BUG: Added inclusion of pre-build rules for custom targets.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator2.cxx4
1 files changed, 3 insertions, 1 deletions
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<std::string> commands;
std::vector<std::string> 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.