Explorar o código

BUG: Added inclusion of pre-build rules for custom targets.

Brad King %!s(int64=20) %!d(string=hai) anos
pai
achega
2b05a503e4
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Source/cmLocalUnixMakefileGenerator2.cxx

+ 3 - 1
Source/cmLocalUnixMakefileGenerator2.cxx

@@ -789,8 +789,10 @@ cmLocalUnixMakefileGenerator2
   std::vector<std::string> commands;
   std::vector<std::string> commands;
   std::vector<std::string> depends;
   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->AppendCustomDepends(depends, target.GetPostBuildCommands());
+  this->AppendCustomCommands(commands, target.GetPreBuildCommands());
   this->AppendCustomCommands(commands, target.GetPostBuildCommands());
   this->AppendCustomCommands(commands, target.GetPostBuildCommands());
 
 
   // Add dependencies on targets that must be built first.
   // Add dependencies on targets that must be built first.