cmMakefile: Defer dependency calculations
This commit is contained in:
parent
dc2e26df01
commit
6208c285c8
|
@ -1056,6 +1056,9 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs,
|
|||
}
|
||||
}
|
||||
|
||||
// Attach the custom command to the file.
|
||||
if(file)
|
||||
{
|
||||
// Construct a complete list of dependencies.
|
||||
std::vector<std::string> depends2(depends);
|
||||
if(!main_dependency.empty())
|
||||
|
@ -1063,9 +1066,6 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs,
|
|||
depends2.push_back(main_dependency);
|
||||
}
|
||||
|
||||
// Attach the custom command to the file.
|
||||
if(file)
|
||||
{
|
||||
cmCustomCommand* cc =
|
||||
new cmCustomCommand(this, outputs, depends2, commandLines,
|
||||
comment, workingDir);
|
||||
|
|
Loading…
Reference in New Issue