|
@@ -235,14 +235,17 @@ cmExportBuildFileGenerator
|
|
|
//----------------------------------------------------------------------------
|
|
|
void
|
|
|
cmExportBuildFileGenerator::HandleMissingTarget(
|
|
|
- std::string& link_libs, std::vector<std::string>& missingTargets,
|
|
|
- cmMakefile* mf, cmTarget* depender, cmTarget* dependee)
|
|
|
+ std::string& link_libs,
|
|
|
+ std::vector<std::string>& missingTargets,
|
|
|
+ cmTarget* depender,
|
|
|
+ cmTarget* dependee)
|
|
|
{
|
|
|
// The target is not in the export.
|
|
|
if(!this->AppendMode)
|
|
|
{
|
|
|
const std::string name = dependee->GetName();
|
|
|
- std::vector<std::string> namespaces = this->FindNamespaces(mf, name);
|
|
|
+ cmGlobalGenerator* gg = dependee->GetMakefile()->GetGlobalGenerator();
|
|
|
+ std::vector<std::string> namespaces = this->FindNamespaces(gg, name);
|
|
|
|
|
|
int targetOccurrences = (int)namespaces.size();
|
|
|
if (targetOccurrences == 1)
|
|
@@ -287,10 +290,9 @@ void cmExportBuildFileGenerator
|
|
|
//----------------------------------------------------------------------------
|
|
|
std::vector<std::string>
|
|
|
cmExportBuildFileGenerator
|
|
|
-::FindNamespaces(cmMakefile* mf, const std::string& name)
|
|
|
+::FindNamespaces(cmGlobalGenerator* gg, const std::string& name)
|
|
|
{
|
|
|
std::vector<std::string> namespaces;
|
|
|
- cmGlobalGenerator* gg = mf->GetGlobalGenerator();
|
|
|
|
|
|
std::map<std::string, cmExportBuildFileGenerator*>& exportSets
|
|
|
= gg->GetBuildExportSets();
|