BUG: Need source file and OBJECT_DEPENDS as dependencies of an object file.

This commit is contained in:
Brad King 2002-12-13 17:34:34 -05:00
parent 3348131819
commit 4cbcd08594
1 changed files with 2 additions and 2 deletions

View File

@ -2356,10 +2356,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
sourceAndDeps.push_back(sourceFile);
// Check for extra object-file dependencies.
std::vector<std::string> depends;
const char* additionalDeps = source.GetProperty("OBJECT_DEPENDS");
if(additionalDeps)
{
std::vector<std::string> depends;
cmSystemTools::ExpandListArgument(additionalDeps, depends);
for(std::vector<std::string>::iterator i = depends.begin();
i != depends.end(); ++i)
@ -2371,7 +2371,7 @@ OutputBuildObjectFromSource(std::ostream& fout,
this->OutputMakeRule(fout,
comment.c_str(),
objectFile.c_str(),
sourceFile.c_str(),
sourceAndDeps,
commands);
}