diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index 1722028dc..daba40d26 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -510,12 +510,12 @@ cmGlobalUnixMakefileGenerator3 std::vector::iterator sdi = subdirs.begin(); for (; sdi != subdirs.end(); ++sdi) { - cmLocalUnixMakefileGenerator3 * lg = + cmLocalUnixMakefileGenerator3 * lg2 = static_cast(*sdi); - dir = lg->GetMakefile()->GetStartOutputDirectory(); + dir = lg2->GetMakefile()->GetStartOutputDirectory(); dir += "/directory"; - dir = lg->Convert(dir.c_str(),cmLocalGenerator::HOME_OUTPUT, - cmLocalGenerator::MAKEFILE); + dir = lg2->Convert(dir.c_str(),cmLocalGenerator::HOME_OUTPUT, + cmLocalGenerator::MAKEFILE); all_tgts.push_back(dir); }