Improve signature of cmLocalGenerator::GetRealDependency

Allow file-level custom command dependencies to be skipped.
This commit is contained in:
Brad King
2010-12-08 16:51:16 -05:00
parent afc8906468
commit e30a775f68
7 changed files with 51 additions and 33 deletions

View File

@@ -686,10 +686,12 @@ cmLocalVisualStudio6Generator
++d)
{
// Lookup the real name of the dependency in case it is a CMake target.
std::string dep = this->GetRealDependency(d->c_str(),
config.c_str());
fout << "\\\n\t" <<
this->ConvertToOptionallyRelativeOutputPath(dep.c_str());
std::string dep;
if(this->GetRealDependency(d->c_str(), config.c_str(), dep))
{
fout << "\\\n\t" <<
this->ConvertToOptionallyRelativeOutputPath(dep.c_str());
}
}
fout << "\n";