cmLocalGenerator: simplify the current source dir query

This commit is contained in:
Ben Boeckel 2020-01-09 14:40:44 -05:00
parent 3a5cc52f07
commit fd84f510f8

View File

@ -2003,8 +2003,7 @@ bool cmLocalGenerator::GetRealDependency(const std::string& inName,
// Treat the name as relative to the source directory in which it
// was given.
dep = cmStrCat(this->StateSnapshot.GetDirectory().GetCurrentSource(), '/',
inName);
dep = cmStrCat(this->GetCurrentSourceDirectory(), '/', inName);
return true;
}