BUG: add full path libraries to the depend information
This commit is contained in:
parent
1dbcfd2a98
commit
59756a43f4
|
@ -1853,6 +1853,19 @@ void cmLocalUnixMakefileGenerator::OutputLibDepend(std::ostream& fout,
|
||||||
}
|
}
|
||||||
fout << this->ConvertToRelativeOutputPath(libpath.c_str()) << " ";
|
fout << this->ConvertToRelativeOutputPath(libpath.c_str()) << " ";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(cmSystemTools::FileExists(name))
|
||||||
|
{
|
||||||
|
std::string nameStr = name;
|
||||||
|
// if it starts with / or \ or ?:/ or ?:\ then it must be a full path
|
||||||
|
if( (nameStr.size() && (nameStr[0] == '/' || nameStr[0] == '\\')) ||
|
||||||
|
((nameStr.size() > 3) && (nameStr[1] == ':') && (nameStr[2] == '/' || nameStr[2] == '\\')))
|
||||||
|
{
|
||||||
|
fout << this->ConvertToRelativeOutputPath(name) << " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue