diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index 6e6a2d7b5..01bdfc643 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -2698,7 +2698,8 @@ cmGlobalXCodeGenerator::CreateXCodeDependHackTarget( { std::string universal = t->GetDirectory(); universal += "/"; - universal += this->CurrentMakefile->GetProjectName(); + universal += + this->LocalGenerators[0]->GetMakefile()->GetProjectName(); universal += ".build/"; universal += configName; universal += "/";