Commit 24c9434a authored by Brad King's avatar Brad King

BUG: Avoid double-slash in check for source file

parent d6f02cd9
......@@ -113,8 +113,11 @@ void cmSourceFileLocation::UpdateExtension(const char* name)
tryPath = this->Makefile->GetCurrentDirectory();
tryPath += "/";
}
tryPath += this->Directory;
tryPath += "/";
if(!this->Directory.empty())
{
tryPath += this->Directory;
tryPath += "/";
}
tryPath += this->Name;
if(cmSystemTools::FileExists(tryPath.c_str(), true))
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment