ENH: make sure source file depends are used to determine if custom commands are used

This commit is contained in:
Bill Hoffman 2005-07-26 13:26:37 -04:00
parent 9b8d15944f
commit 35e36b5b76
1 changed files with 6 additions and 3 deletions

View File

@ -62,10 +62,13 @@ void cmTarget::TraceVSDependencies(std::string projFile,
// does this sourcefile have object depends on it?
// If so then add them as well
const char* additionalDeps = (*i)->GetProperty("OBJECT_DEPENDS");
if (additionalDeps)
std::vector<std::string> depends = (*i)->GetDepends();
if (additionalDeps || depends.size())
{
std::vector<std::string> depends;
cmSystemTools::ExpandListArgument(additionalDeps, depends);
if(additionalDeps)
{
cmSystemTools::ExpandListArgument(additionalDeps, depends);
}
for(std::vector<std::string>::iterator id = depends.begin();
id != depends.end(); ++id)
{