diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-28 17:12:07 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-28 17:12:07 (GMT) |
commit | fac61306a2cd6a73ec185cc7869e2e165e2ed840 (patch) | |
tree | 315192b6afbf185f886c938857f125ebea18991c /Source/cmGlobalXCodeGenerator.cxx | |
parent | a6abb79776733653d0ab4ce5a848152e84393914 (diff) | |
download | CMake-fac61306a2cd6a73ec185cc7869e2e165e2ed840.zip CMake-fac61306a2cd6a73ec185cc7869e2e165e2ed840.tar.gz CMake-fac61306a2cd6a73ec185cc7869e2e165e2ed840.tar.bz2 |
ENH: make sure custom commands depend on full path files only: Bill as Andy
Diffstat (limited to 'Source/cmGlobalXCodeGenerator.cxx')
-rw-r--r-- | Source/cmGlobalXCodeGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index c91d2c0..5009568 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -834,8 +834,14 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase, if(!this->FindTarget(m_CurrentProject.c_str(), d->c_str())) { - makefileStream << "\\\n" << this - ->ConvertToRelativeForMake(d->c_str()); + // 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 { |