diff options
author | Brad King <brad.king@kitware.com> | 2007-05-23 21:21:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-05-23 21:21:08 (GMT) |
commit | ea44d68cb669b145406d468b9b7943a0ddac4d91 (patch) | |
tree | 3190c839984481b47ba783c0c200849eb441efd2 /Source/cmGlobalXCodeGenerator.cxx | |
parent | c3474ad0294ee0f3497dbf096e1319e31083de69 (diff) | |
download | CMake-ea44d68cb669b145406d468b9b7943a0ddac4d91.zip CMake-ea44d68cb669b145406d468b9b7943a0ddac4d91.tar.gz CMake-ea44d68cb669b145406d468b9b7943a0ddac4d91.tar.bz2 |
BUG: Need to use GetRealDependency for custom command file-level dependencies.
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index ee09b21..a796bae 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1029,24 +1029,11 @@ void cmGlobalXCodeGenerator cc.GetDepends().begin(); d != cc.GetDepends().end(); ++d) { - if(!this->FindTarget(this->CurrentProject.c_str(), d->c_str(), false)) - { - // if the depend is not a target but - // is a full path then use it, if not then - // just skip it - if(cmSystemTools::FileIsFullPath(d->c_str())) - { - makefileStream << "\\\n" << this - ->ConvertToRelativeForMake(d->c_str()); - } - } - else - { - // if the depend is a target then make - // the target with the source that is a custom command - // depend on the that target via a AddUtility call - target.AddUtility(d->c_str()); - } + std::string dep = + this->CurrentLocalGenerator->GetRealDependency(d->c_str(), + configName); + makefileStream << "\\\n" << this + ->ConvertToRelativeForMake(dep.c_str()); } makefileStream << "\n"; |