BUG: Avoid double-slash in check for source file
This commit is contained in:
parent
d6f02cd911
commit
24c9434a81
|
@ -113,8 +113,11 @@ void cmSourceFileLocation::UpdateExtension(const char* name)
|
||||||
tryPath = this->Makefile->GetCurrentDirectory();
|
tryPath = this->Makefile->GetCurrentDirectory();
|
||||||
tryPath += "/";
|
tryPath += "/";
|
||||||
}
|
}
|
||||||
tryPath += this->Directory;
|
if(!this->Directory.empty())
|
||||||
tryPath += "/";
|
{
|
||||||
|
tryPath += this->Directory;
|
||||||
|
tryPath += "/";
|
||||||
|
}
|
||||||
tryPath += this->Name;
|
tryPath += this->Name;
|
||||||
if(cmSystemTools::FileExists(tryPath.c_str(), true))
|
if(cmSystemTools::FileExists(tryPath.c_str(), true))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue