BUG: AppendAnyDepend must handle non-existing files.
This commit is contained in:
parent
1480676dab
commit
e8ef42ed74
|
@ -2078,7 +2078,7 @@ cmLocalUnixMakefileGenerator2
|
|||
// There are a few cases for the name of the target:
|
||||
// - CMake target in this directory: depend on it.
|
||||
// - CMake target in another directory: depend and add jump-and-build.
|
||||
// - Full path to an outside file: depend on it.
|
||||
// - Full path to a file: depend on it.
|
||||
// - Other format (like -lm): do nothing.
|
||||
|
||||
// If it is an executable or library target there will be a
|
||||
|
@ -2180,15 +2180,11 @@ cmLocalUnixMakefileGenerator2
|
|||
// directly.
|
||||
depends.push_back(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
// This is not a CMake target. If it exists and is a full path we
|
||||
// can depend on it.
|
||||
if(cmSystemTools::FileExists(name) && cmSystemTools::FileIsFullPath(name))
|
||||
else if(cmSystemTools::FileIsFullPath(name))
|
||||
{
|
||||
// This is a path to a file. Just trust that it will be present.
|
||||
depends.push_back(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue