BUG: A utility target should not run the custom commands from its source files directly. The target-level rule must add dependencies on the file-level custom commands to drive them. This bug was introduced by the "fix" to bug 4377. This also restores the documented behavior that PRE_BUILD rules are treated as PRE_LINK rules on non-VS generators. Also fixed custom command dependencies on the rule file build.make so that custom commands re-run when the commands themselves change.

This commit is contained in:
Brad King
2007-05-01 13:51:25 -04:00
parent ef0b9ff2cc
commit c51c245efa
5 changed files with 17 additions and 28 deletions
@@ -27,7 +27,7 @@
//----------------------------------------------------------------------------
cmMakefileExecutableTargetGenerator::cmMakefileExecutableTargetGenerator()
{
this->DriveCustomCommandsOnDepends = true;
this->CustomCommandDriver = OnDepends;
}
//----------------------------------------------------------------------------