mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
ENH: make sure custom commands depend on full path files only: Bill as Andy
This commit is contained in:
1 parent
a6abb79776
commit
fac61306a2
1 file changed
+8
-2
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user