Port to cmMakefile::GetGlobalGenerator.
This commit is contained in:
parent
cbf143bb76
commit
a0836ed978
|
@ -105,9 +105,8 @@ bool cmBuildCommand
|
||||||
"Ignoring PROJECT_NAME option because it has no effect.");
|
"Ignoring PROJECT_NAME option because it has no effect.");
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string makecommand = this->Makefile->GetLocalGenerator()
|
std::string makecommand = this->Makefile->GetGlobalGenerator()
|
||||||
->GetGlobalGenerator()->GenerateCMakeBuildCommand(target, configuration,
|
->GenerateCMakeBuildCommand(target, configuration, "", true);
|
||||||
"", true);
|
|
||||||
|
|
||||||
this->Makefile->AddDefinition(variable, makecommand.c_str());
|
this->Makefile->AddDefinition(variable, makecommand.c_str());
|
||||||
|
|
||||||
|
@ -135,9 +134,8 @@ bool cmBuildCommand
|
||||||
configType = cfg;
|
configType = cfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string makecommand = this->Makefile->GetLocalGenerator()
|
std::string makecommand = this->Makefile->GetGlobalGenerator()
|
||||||
->GetGlobalGenerator()->GenerateCMakeBuildCommand("", configType,
|
->GenerateCMakeBuildCommand("", configType, "", true);
|
||||||
"", true);
|
|
||||||
|
|
||||||
if(cacheValue)
|
if(cacheValue)
|
||||||
{
|
{
|
||||||
|
|
|
@ -247,7 +247,7 @@ cmComputeLinkInformation
|
||||||
this->Target = target;
|
this->Target = target;
|
||||||
this->Makefile = this->Target->GetMakefile();
|
this->Makefile = this->Target->GetMakefile();
|
||||||
this->LocalGenerator = this->Makefile->GetLocalGenerator();
|
this->LocalGenerator = this->Makefile->GetLocalGenerator();
|
||||||
this->GlobalGenerator = this->LocalGenerator->GetGlobalGenerator();
|
this->GlobalGenerator = this->Makefile->GetGlobalGenerator();
|
||||||
this->CMakeInstance = this->GlobalGenerator->GetCMakeInstance();
|
this->CMakeInstance = this->GlobalGenerator->GetCMakeInstance();
|
||||||
|
|
||||||
// Check whether to recognize OpenBSD-style library versioned names.
|
// Check whether to recognize OpenBSD-style library versioned names.
|
||||||
|
|
|
@ -274,7 +274,7 @@ cmExportBuildFileGenerator
|
||||||
::FindNamespaces(cmMakefile* mf, const std::string& name)
|
::FindNamespaces(cmMakefile* mf, const std::string& name)
|
||||||
{
|
{
|
||||||
std::vector<std::string> namespaces;
|
std::vector<std::string> namespaces;
|
||||||
cmGlobalGenerator* gg = mf->GetLocalGenerator()->GetGlobalGenerator();
|
cmGlobalGenerator* gg = mf->GetGlobalGenerator();
|
||||||
|
|
||||||
std::map<std::string, cmExportBuildFileGenerator*>& exportSets
|
std::map<std::string, cmExportBuildFileGenerator*>& exportSets
|
||||||
= gg->GetBuildExportSets();
|
= gg->GetBuildExportSets();
|
||||||
|
|
|
@ -119,8 +119,7 @@ bool cmExportCommand
|
||||||
|
|
||||||
std::vector<std::string> targets;
|
std::vector<std::string> targets;
|
||||||
|
|
||||||
cmGlobalGenerator *gg = this->Makefile->GetLocalGenerator()
|
cmGlobalGenerator *gg = this->Makefile->GetGlobalGenerator();
|
||||||
->GetGlobalGenerator();
|
|
||||||
|
|
||||||
if(args[0] == "EXPORT")
|
if(args[0] == "EXPORT")
|
||||||
{
|
{
|
||||||
|
|
|
@ -479,7 +479,7 @@ cmExportInstallFileGenerator
|
||||||
::FindNamespaces(cmMakefile* mf, const std::string& name)
|
::FindNamespaces(cmMakefile* mf, const std::string& name)
|
||||||
{
|
{
|
||||||
std::vector<std::string> namespaces;
|
std::vector<std::string> namespaces;
|
||||||
cmGlobalGenerator* gg = mf->GetLocalGenerator()->GetGlobalGenerator();
|
cmGlobalGenerator* gg = mf->GetGlobalGenerator();
|
||||||
const cmExportSetMap& exportSets = gg->GetExportSets();
|
const cmExportSetMap& exportSets = gg->GetExportSets();
|
||||||
|
|
||||||
for(cmExportSetMap::const_iterator expIt = exportSets.begin();
|
for(cmExportSetMap::const_iterator expIt = exportSets.begin();
|
||||||
|
|
|
@ -3568,8 +3568,7 @@ void cmFileCommand::AddEvaluationFile(const std::string &inputName,
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> conditionCge
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> conditionCge
|
||||||
= conditionGe.Parse(condition);
|
= conditionGe.Parse(condition);
|
||||||
|
|
||||||
this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->AddEvaluationFile(inputName,
|
||||||
->GetGlobalGenerator()->AddEvaluationFile(inputName,
|
|
||||||
outputCge,
|
outputCge,
|
||||||
this->Makefile,
|
this->Makefile,
|
||||||
conditionCge,
|
conditionCge,
|
||||||
|
@ -3772,8 +3771,8 @@ bool cmFileCommand::HandleLockCommand(
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
|
||||||
// Actual lock/unlock
|
// Actual lock/unlock
|
||||||
cmFileLockPool& lockPool = this->Makefile->GetLocalGenerator()->
|
cmFileLockPool& lockPool = this->Makefile->GetGlobalGenerator()
|
||||||
GetGlobalGenerator()->GetFileLockPool();
|
->GetFileLockPool();
|
||||||
|
|
||||||
cmFileLockResult fileLockResult(cmFileLockResult::MakeOk());
|
cmFileLockResult fileLockResult(cmFileLockResult::MakeOk());
|
||||||
if (release)
|
if (release)
|
||||||
|
|
|
@ -212,7 +212,7 @@ struct cmFindLibraryHelper
|
||||||
cmFindLibraryHelper::cmFindLibraryHelper(cmMakefile* mf):
|
cmFindLibraryHelper::cmFindLibraryHelper(cmMakefile* mf):
|
||||||
Makefile(mf)
|
Makefile(mf)
|
||||||
{
|
{
|
||||||
this->GG = this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
this->GG = this->Makefile->GetGlobalGenerator();
|
||||||
|
|
||||||
// Collect the list of library name prefixes/suffixes to try.
|
// Collect the list of library name prefixes/suffixes to try.
|
||||||
const char* prefixes_list =
|
const char* prefixes_list =
|
||||||
|
|
|
@ -103,8 +103,7 @@ void cmGeneratorExpressionEvaluationFile::CreateOutputFile(
|
||||||
std::string const& config)
|
std::string const& config)
|
||||||
{
|
{
|
||||||
std::vector<std::string> enabledLanguages;
|
std::vector<std::string> enabledLanguages;
|
||||||
cmGlobalGenerator *gg
|
cmGlobalGenerator *gg = this->Makefile->GetGlobalGenerator();
|
||||||
= this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
|
||||||
gg->GetEnabledLanguages(enabledLanguages);
|
gg->GetEnabledLanguages(enabledLanguages);
|
||||||
|
|
||||||
for(std::vector<std::string>::const_iterator le = enabledLanguages.begin();
|
for(std::vector<std::string>::const_iterator le = enabledLanguages.begin();
|
||||||
|
@ -168,8 +167,7 @@ void cmGeneratorExpressionEvaluationFile::Generate()
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> enabledLanguages;
|
std::vector<std::string> enabledLanguages;
|
||||||
cmGlobalGenerator *gg
|
cmGlobalGenerator *gg = this->Makefile->GetGlobalGenerator();
|
||||||
= this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
|
||||||
gg->GetEnabledLanguages(enabledLanguages);
|
gg->GetEnabledLanguages(enabledLanguages);
|
||||||
|
|
||||||
for(std::vector<std::string>::const_iterator le = enabledLanguages.begin();
|
for(std::vector<std::string>::const_iterator le = enabledLanguages.begin();
|
||||||
|
|
|
@ -768,8 +768,7 @@ static const struct CompileLanguageNode : public cmGeneratorExpressionNode
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<std::string> enabledLanguages;
|
std::vector<std::string> enabledLanguages;
|
||||||
cmGlobalGenerator* gg
|
cmGlobalGenerator* gg = context->Makefile->GetGlobalGenerator();
|
||||||
= context->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
|
||||||
gg->GetEnabledLanguages(enabledLanguages);
|
gg->GetEnabledLanguages(enabledLanguages);
|
||||||
if (!parameters.empty() &&
|
if (!parameters.empty() &&
|
||||||
std::find(enabledLanguages.begin(), enabledLanguages.end(),
|
std::find(enabledLanguages.begin(), enabledLanguages.end(),
|
||||||
|
|
|
@ -132,8 +132,7 @@ struct TagVisitor
|
||||||
|
|
||||||
TagVisitor(cmTarget *target, DataType& data)
|
TagVisitor(cmTarget *target, DataType& data)
|
||||||
: Data(data), Target(target),
|
: Data(data), Target(target),
|
||||||
GlobalGenerator(target->GetMakefile()
|
GlobalGenerator(target->GetMakefile()->GetGlobalGenerator()),
|
||||||
->GetLocalGenerator()->GetGlobalGenerator()),
|
|
||||||
Header(CM_HEADER_REGEX),
|
Header(CM_HEADER_REGEX),
|
||||||
IsObjLib(target->GetType() == cmTarget::OBJECT_LIBRARY)
|
IsObjLib(target->GetType() == cmTarget::OBJECT_LIBRARY)
|
||||||
{
|
{
|
||||||
|
@ -226,7 +225,7 @@ cmGeneratorTarget::cmGeneratorTarget(cmTarget* t): Target(t),
|
||||||
{
|
{
|
||||||
this->Makefile = this->Target->GetMakefile();
|
this->Makefile = this->Target->GetMakefile();
|
||||||
this->LocalGenerator = this->Makefile->GetLocalGenerator();
|
this->LocalGenerator = this->Makefile->GetLocalGenerator();
|
||||||
this->GlobalGenerator = this->LocalGenerator->GetGlobalGenerator();
|
this->GlobalGenerator = this->Makefile->GetGlobalGenerator();
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -648,8 +647,7 @@ cmTargetTraceDependencies
|
||||||
{
|
{
|
||||||
// Convenience.
|
// Convenience.
|
||||||
this->Makefile = this->Target->GetMakefile();
|
this->Makefile = this->Target->GetMakefile();
|
||||||
this->GlobalGenerator =
|
this->GlobalGenerator = this->Makefile->GetGlobalGenerator();
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
|
||||||
this->CurrentEntry = 0;
|
this->CurrentEntry = 0;
|
||||||
|
|
||||||
// Queue all the source files already specified for the target.
|
// Queue all the source files already specified for the target.
|
||||||
|
@ -1025,8 +1023,7 @@ void cmGeneratorTarget::GenerateTargetManifest(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cmMakefile* mf = this->Target->GetMakefile();
|
cmMakefile* mf = this->Target->GetMakefile();
|
||||||
cmLocalGenerator* lg = mf->GetLocalGenerator();
|
cmGlobalGenerator* gg = mf->GetGlobalGenerator();
|
||||||
cmGlobalGenerator* gg = lg->GetGlobalGenerator();
|
|
||||||
|
|
||||||
// Get the names.
|
// Get the names.
|
||||||
std::string name;
|
std::string name;
|
||||||
|
|
|
@ -47,8 +47,7 @@ bool cmGetCMakePropertyCommand
|
||||||
else if ( args[1] == "COMPONENTS" )
|
else if ( args[1] == "COMPONENTS" )
|
||||||
{
|
{
|
||||||
const std::set<std::string>* components
|
const std::set<std::string>* components
|
||||||
= this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
= this->Makefile->GetGlobalGenerator()->GetInstallComponents();
|
||||||
->GetInstallComponents();
|
|
||||||
output = cmJoin(*components, ";");
|
output = cmJoin(*components, ";");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -53,7 +53,7 @@ bool cmGetDirectoryPropertyCommand
|
||||||
|
|
||||||
// lookup the makefile from the directory name
|
// lookup the makefile from the directory name
|
||||||
cmLocalGenerator *lg =
|
cmLocalGenerator *lg =
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
this->Makefile->GetGlobalGenerator()->
|
||||||
FindLocalGenerator(sd);
|
FindLocalGenerator(sd);
|
||||||
if (!lg)
|
if (!lg)
|
||||||
{
|
{
|
||||||
|
|
|
@ -265,8 +265,7 @@ bool cmGetPropertyCommand::HandleDirectoryMode()
|
||||||
|
|
||||||
// Lookup the generator.
|
// Lookup the generator.
|
||||||
if(cmLocalGenerator* lg =
|
if(cmLocalGenerator* lg =
|
||||||
(this->Makefile->GetLocalGenerator()
|
(this->Makefile->GetGlobalGenerator()->FindLocalGenerator(dir)))
|
||||||
->GetGlobalGenerator()->FindLocalGenerator(dir)))
|
|
||||||
{
|
{
|
||||||
// Use the makefile for the directory found.
|
// Use the makefile for the directory found.
|
||||||
mf = lg->GetMakefile();
|
mf = lg->GetMakefile();
|
||||||
|
|
|
@ -93,8 +93,7 @@ bool cmIncludeCommand
|
||||||
cmSystemTools::CollapseFullPath(fname,
|
cmSystemTools::CollapseFullPath(fname,
|
||||||
this->Makefile->GetCurrentSourceDirectory());
|
this->Makefile->GetCurrentSourceDirectory());
|
||||||
|
|
||||||
cmGlobalGenerator *gg = this->Makefile->GetLocalGenerator()
|
cmGlobalGenerator *gg = this->Makefile->GetGlobalGenerator();
|
||||||
->GetGlobalGenerator();
|
|
||||||
if (gg->IsExportedTargetsFile(fname_abs))
|
if (gg->IsExportedTargetsFile(fname_abs))
|
||||||
{
|
{
|
||||||
const char *modal = 0;
|
const char *modal = 0;
|
||||||
|
|
|
@ -62,8 +62,7 @@ bool cmInstallCommand::InitialPass(std::vector<std::string> const& args,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable the install target.
|
// Enable the install target.
|
||||||
this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->EnableInstallTarget();
|
||||||
->GetGlobalGenerator()->EnableInstallTarget();
|
|
||||||
|
|
||||||
this->DefaultComponentName = this->Makefile->GetSafeDefinition(
|
this->DefaultComponentName = this->Makefile->GetSafeDefinition(
|
||||||
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
|
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME");
|
||||||
|
@ -198,7 +197,7 @@ bool cmInstallCommand::HandleScriptMode(std::vector<std::string> const& args)
|
||||||
}
|
}
|
||||||
|
|
||||||
//Tell the global generator about any installation component names specified.
|
//Tell the global generator about any installation component names specified.
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(component.c_str());
|
->AddInstallComponent(component.c_str());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -774,7 +773,7 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
||||||
te->HeaderGenerator = publicHeaderGenerator;
|
te->HeaderGenerator = publicHeaderGenerator;
|
||||||
te->LibraryGenerator = libraryGenerator;
|
te->LibraryGenerator = libraryGenerator;
|
||||||
te->RuntimeGenerator = runtimeGenerator;
|
te->RuntimeGenerator = runtimeGenerator;
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->GetExportSets()[exports.GetString()]->AddTargetExport(te);
|
->GetExportSets()[exports.GetString()]->AddTargetExport(te);
|
||||||
|
|
||||||
te->InterfaceIncludeDirectories =
|
te->InterfaceIncludeDirectories =
|
||||||
|
@ -786,43 +785,42 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
|
||||||
// specified
|
// specified
|
||||||
if (installsArchive)
|
if (installsArchive)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->
|
this->Makefile->GetGlobalGenerator()
|
||||||
GetGlobalGenerator()
|
|
||||||
->AddInstallComponent(archiveArgs.GetComponent().c_str());
|
->AddInstallComponent(archiveArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsLibrary)
|
if (installsLibrary)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(libraryArgs.GetComponent().c_str());
|
->AddInstallComponent(libraryArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsRuntime)
|
if (installsRuntime)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(runtimeArgs.GetComponent().c_str());
|
->AddInstallComponent(runtimeArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsFramework)
|
if (installsFramework)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(frameworkArgs.GetComponent().c_str());
|
->AddInstallComponent(frameworkArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsBundle)
|
if (installsBundle)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(bundleArgs.GetComponent().c_str());
|
->AddInstallComponent(bundleArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsPrivateHeader)
|
if (installsPrivateHeader)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(privateHeaderArgs.GetComponent().c_str());
|
->AddInstallComponent(privateHeaderArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsPublicHeader)
|
if (installsPublicHeader)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(publicHeaderArgs.GetComponent().c_str());
|
->AddInstallComponent(publicHeaderArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
if (installsResource)
|
if (installsResource)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(resourceArgs.GetComponent().c_str());
|
->AddInstallComponent(resourceArgs.GetComponent().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -890,7 +888,7 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
|
||||||
CreateInstallFilesGenerator(this->Makefile, absFiles, ica, programs));
|
CreateInstallFilesGenerator(this->Makefile, absFiles, ica, programs));
|
||||||
|
|
||||||
//Tell the global generator about any installation component names specified.
|
//Tell the global generator about any installation component names specified.
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(ica.GetComponent().c_str());
|
->AddInstallComponent(ica.GetComponent().c_str());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -1235,7 +1233,7 @@ cmInstallCommand::HandleDirectoryMode(std::vector<std::string> const& args)
|
||||||
|
|
||||||
// Tell the global generator about any installation component names
|
// Tell the global generator about any installation component names
|
||||||
// specified.
|
// specified.
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(component.c_str());
|
->AddInstallComponent(component.c_str());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -1322,8 +1320,8 @@ bool cmInstallCommand::HandleExportMode(std::vector<std::string> const& args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cmExportSet *exportSet = this->Makefile->GetLocalGenerator()
|
cmExportSet *exportSet = this->Makefile->GetGlobalGenerator()
|
||||||
->GetGlobalGenerator()->GetExportSets()[exp.GetString()];
|
->GetExportSets()[exp.GetString()];
|
||||||
if (exportOld.IsEnabled())
|
if (exportOld.IsEnabled())
|
||||||
{
|
{
|
||||||
for(std::vector<cmTargetExport*>::const_iterator
|
for(std::vector<cmTargetExport*>::const_iterator
|
||||||
|
|
|
@ -24,8 +24,7 @@ bool cmInstallFilesCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable the install target.
|
// Enable the install target.
|
||||||
this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->EnableInstallTarget();
|
||||||
->GetGlobalGenerator()->EnableInstallTarget();
|
|
||||||
|
|
||||||
this->Destination = args[0];
|
this->Destination = args[0];
|
||||||
|
|
||||||
|
@ -48,7 +47,7 @@ bool cmInstallFilesCommand
|
||||||
args.begin() + 1, args.end());
|
args.begin() + 1, args.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
||||||
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
||||||
|
|
||||||
|
|
|
@ -22,14 +22,13 @@ bool cmInstallProgramsCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable the install target.
|
// Enable the install target.
|
||||||
this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->EnableInstallTarget();
|
||||||
->GetGlobalGenerator()->EnableInstallTarget();
|
|
||||||
|
|
||||||
this->Destination = args[0];
|
this->Destination = args[0];
|
||||||
|
|
||||||
this->FinalArgs.insert(this->FinalArgs.end(), args.begin() + 1, args.end());
|
this->FinalArgs.insert(this->FinalArgs.end(), args.begin() + 1, args.end());
|
||||||
|
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
||||||
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
||||||
|
|
||||||
|
|
|
@ -728,8 +728,7 @@ cmInstallTargetGenerator
|
||||||
i != oldRuntimeDirs.end(); ++i)
|
i != oldRuntimeDirs.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string runpath =
|
std::string runpath =
|
||||||
mf->GetLocalGenerator()->
|
mf->GetGlobalGenerator()->ExpandCFGIntDir(*i, config);
|
||||||
GetGlobalGenerator()->ExpandCFGIntDir(*i, config);
|
|
||||||
|
|
||||||
if(runpaths.find(runpath) == runpaths.end())
|
if(runpaths.find(runpath) == runpaths.end())
|
||||||
{
|
{
|
||||||
|
@ -745,8 +744,7 @@ cmInstallTargetGenerator
|
||||||
i != newRuntimeDirs.end(); ++i)
|
i != newRuntimeDirs.end(); ++i)
|
||||||
{
|
{
|
||||||
std::string runpath =
|
std::string runpath =
|
||||||
mf->GetLocalGenerator()->
|
mf->GetGlobalGenerator()->ExpandCFGIntDir(*i, config);
|
||||||
GetGlobalGenerator()->ExpandCFGIntDir(*i, config);
|
|
||||||
|
|
||||||
if(runpaths.find(runpath) == runpaths.end())
|
if(runpaths.find(runpath) == runpaths.end())
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,7 @@ bool cmInstallTargetsCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
// Enable the install target.
|
// Enable the install target.
|
||||||
this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->EnableInstallTarget();
|
||||||
->GetGlobalGenerator()->EnableInstallTarget();
|
|
||||||
|
|
||||||
cmTargets &tgts = this->Makefile->GetTargets();
|
cmTargets &tgts = this->Makefile->GetTargets();
|
||||||
std::vector<std::string>::const_iterator s = args.begin();
|
std::vector<std::string>::const_iterator s = args.begin();
|
||||||
|
@ -57,7 +56,7 @@ bool cmInstallTargetsCommand
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()
|
this->Makefile->GetGlobalGenerator()
|
||||||
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
->AddInstallComponent(this->Makefile->GetSafeDefinition(
|
||||||
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
"CMAKE_INSTALL_DEFAULT_COMPONENT_NAME"));
|
||||||
|
|
||||||
|
|
|
@ -1014,7 +1014,7 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs,
|
||||||
// Generate a rule file if the main dependency is not available.
|
// Generate a rule file if the main dependency is not available.
|
||||||
if(!file)
|
if(!file)
|
||||||
{
|
{
|
||||||
cmGlobalGenerator* gg = this->LocalGenerator->GetGlobalGenerator();
|
cmGlobalGenerator* gg = this->GetGlobalGenerator();
|
||||||
|
|
||||||
// Construct a rule file associated with the first output produced.
|
// Construct a rule file associated with the first output produced.
|
||||||
std::string outName = gg->GenerateRuleFile(outputs[0]);
|
std::string outName = gg->GenerateRuleFile(outputs[0]);
|
||||||
|
@ -1420,8 +1420,7 @@ bool cmMakefile::ParseDefineFlag(std::string const& def, bool remove)
|
||||||
|
|
||||||
// VS6 IDE does not support definition values with spaces in
|
// VS6 IDE does not support definition values with spaces in
|
||||||
// combination with '"', '$', or ';'.
|
// combination with '"', '$', or ';'.
|
||||||
if((this->LocalGenerator->GetGlobalGenerator()->GetName() ==
|
if((this->GetGlobalGenerator()->GetName() == "Visual Studio 6") &&
|
||||||
"Visual Studio 6") &&
|
|
||||||
(def.find(" ") != def.npos && def.find_first_of("\"$;") != def.npos))
|
(def.find(" ") != def.npos && def.find_first_of("\"$;") != def.npos))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
@ -1505,8 +1504,7 @@ void cmMakefile::AddLinkLibraryForTarget(const std::string& target,
|
||||||
cmTargets::iterator i = this->Targets.find(target);
|
cmTargets::iterator i = this->Targets.find(target);
|
||||||
if ( i != this->Targets.end())
|
if ( i != this->Targets.end())
|
||||||
{
|
{
|
||||||
cmTarget* tgt =
|
cmTarget* tgt = this->GetGlobalGenerator()->FindTarget(lib);
|
||||||
this->GetCMakeInstance()->GetGlobalGenerator()->FindTarget(lib);
|
|
||||||
if(tgt)
|
if(tgt)
|
||||||
{
|
{
|
||||||
// if it is not a static or shared library then you can not link to it
|
// if it is not a static or shared library then you can not link to it
|
||||||
|
@ -1698,10 +1696,9 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
|
||||||
}
|
}
|
||||||
|
|
||||||
// create a new local generator and set its parent
|
// create a new local generator and set its parent
|
||||||
cmLocalGenerator *lg2 =
|
cmLocalGenerator *lg2 = this->GetGlobalGenerator()
|
||||||
this->LocalGenerator->GetGlobalGenerator()
|
|
||||||
->CreateLocalGenerator(this->LocalGenerator);
|
->CreateLocalGenerator(this->LocalGenerator);
|
||||||
this->LocalGenerator->GetGlobalGenerator()->AddLocalGenerator(lg2);
|
this->GetGlobalGenerator()->AddLocalGenerator(lg2);
|
||||||
|
|
||||||
// set the subdirs start dirs
|
// set the subdirs start dirs
|
||||||
lg2->GetMakefile()->SetCurrentSourceDirectory(srcPath);
|
lg2->GetMakefile()->SetCurrentSourceDirectory(srcPath);
|
||||||
|
@ -2017,7 +2014,7 @@ void cmMakefile::AddGlobalLinkInformation(const std::string& name,
|
||||||
void cmMakefile::AddAlias(const std::string& lname, cmTarget *tgt)
|
void cmMakefile::AddAlias(const std::string& lname, cmTarget *tgt)
|
||||||
{
|
{
|
||||||
this->AliasTargets[lname] = tgt;
|
this->AliasTargets[lname] = tgt;
|
||||||
this->LocalGenerator->GetGlobalGenerator()->AddAlias(lname, tgt);
|
this->GetGlobalGenerator()->AddAlias(lname, tgt);
|
||||||
}
|
}
|
||||||
|
|
||||||
cmTarget* cmMakefile::AddLibrary(const std::string& lname,
|
cmTarget* cmMakefile::AddLibrary(const std::string& lname,
|
||||||
|
@ -2074,7 +2071,7 @@ cmMakefile::AddNewTarget(cmTarget::TargetType type, const std::string& name)
|
||||||
cmTarget& target = it->second;
|
cmTarget& target = it->second;
|
||||||
target.SetType(type, name);
|
target.SetType(type, name);
|
||||||
target.SetMakefile(this);
|
target.SetMakefile(this);
|
||||||
this->LocalGenerator->GetGlobalGenerator()->AddTarget(&it->second);
|
this->GetGlobalGenerator()->AddTarget(&it->second);
|
||||||
return &it->second;
|
return &it->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2218,7 +2215,7 @@ void cmMakefile::AddSourceGroup(const std::vector<std::string>& name,
|
||||||
}
|
}
|
||||||
// build the whole source group path
|
// build the whole source group path
|
||||||
const char* fullname = sg->GetFullName();
|
const char* fullname = sg->GetFullName();
|
||||||
cmGlobalGenerator* gg = this->LocalGenerator->GetGlobalGenerator();
|
cmGlobalGenerator* gg = this->GetGlobalGenerator();
|
||||||
if(strlen(fullname))
|
if(strlen(fullname))
|
||||||
{
|
{
|
||||||
std::string guidName = "SG_Filter_";
|
std::string guidName = "SG_Filter_";
|
||||||
|
@ -3175,7 +3172,7 @@ std::string
|
||||||
cmMakefile::GetConfigurations(std::vector<std::string>& configs,
|
cmMakefile::GetConfigurations(std::vector<std::string>& configs,
|
||||||
bool single) const
|
bool single) const
|
||||||
{
|
{
|
||||||
if(this->LocalGenerator->GetGlobalGenerator()->IsMultiConfig())
|
if(this->GetGlobalGenerator()->IsMultiConfig())
|
||||||
{
|
{
|
||||||
if(const char* configTypes =
|
if(const char* configTypes =
|
||||||
this->GetDefinition("CMAKE_CONFIGURATION_TYPES"))
|
this->GetDefinition("CMAKE_CONFIGURATION_TYPES"))
|
||||||
|
@ -3546,10 +3543,8 @@ void cmMakefile::EnableLanguage(std::vector<std::string> const & lang,
|
||||||
bool optional)
|
bool optional)
|
||||||
{
|
{
|
||||||
this->AddDefinition("CMAKE_CFG_INTDIR",
|
this->AddDefinition("CMAKE_CFG_INTDIR",
|
||||||
this->LocalGenerator->GetGlobalGenerator()
|
this->GetGlobalGenerator()->GetCMakeCFGIntDir());
|
||||||
->GetCMakeCFGIntDir());
|
this->GetGlobalGenerator()->EnableLanguage(lang, this, optional);
|
||||||
this->LocalGenerator->GetGlobalGenerator()->EnableLanguage(lang, this,
|
|
||||||
optional);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmMakefile::TryCompile(const std::string& srcdir,
|
int cmMakefile::TryCompile(const std::string& srcdir,
|
||||||
|
@ -3579,7 +3574,7 @@ int cmMakefile::TryCompile(const std::string& srcdir,
|
||||||
cmake cm;
|
cmake cm;
|
||||||
cm.SetIsInTryCompile(true);
|
cm.SetIsInTryCompile(true);
|
||||||
cmGlobalGenerator *gg = cm.CreateGlobalGenerator
|
cmGlobalGenerator *gg = cm.CreateGlobalGenerator
|
||||||
(this->LocalGenerator->GetGlobalGenerator()->GetName());
|
(this->GetGlobalGenerator()->GetName());
|
||||||
if (!gg)
|
if (!gg)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(
|
cmSystemTools::Error(
|
||||||
|
@ -3640,8 +3635,7 @@ int cmMakefile::TryCompile(const std::string& srcdir,
|
||||||
cm.SetCacheArgs(*cmakeArgs);
|
cm.SetCacheArgs(*cmakeArgs);
|
||||||
}
|
}
|
||||||
// to save time we pass the EnableLanguage info directly
|
// to save time we pass the EnableLanguage info directly
|
||||||
gg->EnableLanguagesFromGenerator
|
gg->EnableLanguagesFromGenerator(this->GetGlobalGenerator(), this);
|
||||||
(this->LocalGenerator->GetGlobalGenerator(), this);
|
|
||||||
if(this->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS"))
|
if(this->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS"))
|
||||||
{
|
{
|
||||||
cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
|
cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
|
||||||
|
@ -3673,8 +3667,7 @@ int cmMakefile::TryCompile(const std::string& srcdir,
|
||||||
}
|
}
|
||||||
|
|
||||||
// finally call the generator to actually build the resulting project
|
// finally call the generator to actually build the resulting project
|
||||||
int ret =
|
int ret = this->GetGlobalGenerator()->TryCompile(srcdir,bindir,
|
||||||
this->LocalGenerator->GetGlobalGenerator()->TryCompile(srcdir,bindir,
|
|
||||||
projectName,
|
projectName,
|
||||||
targetName,
|
targetName,
|
||||||
fast,
|
fast,
|
||||||
|
@ -4402,16 +4395,14 @@ void cmMakefile::PushScope()
|
||||||
this->PushLoopBlockBarrier();
|
this->PushLoopBlockBarrier();
|
||||||
|
|
||||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
this->GetLocalGenerator()->GetGlobalGenerator()->
|
this->GetGlobalGenerator()->GetFileLockPool().PushFunctionScope();
|
||||||
GetFileLockPool().PushFunctionScope();
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmMakefile::PopScope()
|
void cmMakefile::PopScope()
|
||||||
{
|
{
|
||||||
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
#if defined(CMAKE_BUILD_WITH_CMAKE)
|
||||||
this->GetLocalGenerator()->GetGlobalGenerator()->
|
this->GetGlobalGenerator()->GetFileLockPool().PopFunctionScope();
|
||||||
GetFileLockPool().PopFunctionScope();
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
this->PopLoopBlockBarrier();
|
this->PopLoopBlockBarrier();
|
||||||
|
@ -4474,7 +4465,7 @@ cmMakefile::AddImportedTarget(const std::string& name,
|
||||||
this->ImportedTargets[name] = target.get();
|
this->ImportedTargets[name] = target.get();
|
||||||
if(global)
|
if(global)
|
||||||
{
|
{
|
||||||
this->LocalGenerator->GetGlobalGenerator()->AddTarget(target.get());
|
this->GetGlobalGenerator()->AddTarget(target.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transfer ownership to this cmMakefile object.
|
// Transfer ownership to this cmMakefile object.
|
||||||
|
@ -4502,8 +4493,7 @@ cmTarget* cmMakefile::FindTargetToUse(const std::string& name,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Look for a target built in this project.
|
// Look for a target built in this project.
|
||||||
return this->LocalGenerator->GetGlobalGenerator()->FindTarget(name,
|
return this->GetGlobalGenerator()->FindTarget(name, excludeAliases);
|
||||||
excludeAliases);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -4511,8 +4501,7 @@ bool cmMakefile::IsAlias(const std::string& name) const
|
||||||
{
|
{
|
||||||
if (this->AliasTargets.find(name) != this->AliasTargets.end())
|
if (this->AliasTargets.find(name) != this->AliasTargets.end())
|
||||||
return true;
|
return true;
|
||||||
return this->GetLocalGenerator()->GetGlobalGenerator()->IsAlias(
|
return this->GetGlobalGenerator()->IsAlias(name);
|
||||||
name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -4521,7 +4510,7 @@ cmMakefile::FindGeneratorTargetToUse(const std::string& name) const
|
||||||
{
|
{
|
||||||
if (cmTarget *t = this->FindTargetToUse(name))
|
if (cmTarget *t = this->FindTargetToUse(name))
|
||||||
{
|
{
|
||||||
return this->LocalGenerator->GetGlobalGenerator()->GetGeneratorTarget(t);
|
return this->GetGlobalGenerator()->GetGeneratorTarget(t);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -4626,7 +4615,7 @@ bool cmMakefile::EnforceUniqueDir(const std::string& srcPath,
|
||||||
const std::string& binPath) const
|
const std::string& binPath) const
|
||||||
{
|
{
|
||||||
// Make sure the binary directory is unique.
|
// Make sure the binary directory is unique.
|
||||||
cmGlobalGenerator* gg = this->LocalGenerator->GetGlobalGenerator();
|
cmGlobalGenerator* gg = this->GetGlobalGenerator();
|
||||||
if(gg->BinaryDirectoryIsNew(binPath))
|
if(gg->BinaryDirectoryIsNew(binPath))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -396,7 +396,7 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
|
||||||
|
|
||||||
std::vector<std::string> rcc_output;
|
std::vector<std::string> rcc_output;
|
||||||
bool const isNinja =
|
bool const isNinja =
|
||||||
makefile->GetLocalGenerator()->GetGlobalGenerator()->GetName() == "Ninja";
|
makefile->GetGlobalGenerator()->GetName() == "Ninja";
|
||||||
if(isNinja
|
if(isNinja
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
|| usePRE_BUILD
|
|| usePRE_BUILD
|
||||||
|
@ -524,8 +524,7 @@ static void GetCompileDefinitionsAndDirectories(cmTarget const* target,
|
||||||
cmMakefile* makefile = target->GetMakefile();
|
cmMakefile* makefile = target->GetMakefile();
|
||||||
cmLocalGenerator* localGen = makefile->GetLocalGenerator();
|
cmLocalGenerator* localGen = makefile->GetLocalGenerator();
|
||||||
std::vector<std::string> includeDirs;
|
std::vector<std::string> includeDirs;
|
||||||
cmGeneratorTarget *gtgt = target->GetMakefile()->GetLocalGenerator()
|
cmGeneratorTarget *gtgt = localGen->GetGlobalGenerator()
|
||||||
->GetGlobalGenerator()
|
|
||||||
->GetGeneratorTarget(target);
|
->GetGeneratorTarget(target);
|
||||||
// Get the include dirs for this target, without stripping the implicit
|
// Get the include dirs for this target, without stripping the implicit
|
||||||
// include dirs off, see http://public.kitware.com/Bug/view.php?id=13667
|
// include dirs off, see http://public.kitware.com/Bug/view.php?id=13667
|
||||||
|
|
|
@ -207,8 +207,7 @@ bool cmSetPropertyCommand::HandleDirectoryMode()
|
||||||
|
|
||||||
// Lookup the generator.
|
// Lookup the generator.
|
||||||
if(cmLocalGenerator* lg =
|
if(cmLocalGenerator* lg =
|
||||||
(this->Makefile->GetLocalGenerator()
|
this->Makefile->GetGlobalGenerator()->FindLocalGenerator(dir))
|
||||||
->GetGlobalGenerator()->FindLocalGenerator(dir)))
|
|
||||||
{
|
{
|
||||||
// Use the makefile for the directory found.
|
// Use the makefile for the directory found.
|
||||||
mf = lg->GetMakefile();
|
mf = lg->GetMakefile();
|
||||||
|
|
|
@ -282,7 +282,7 @@ void cmSourceFile::CheckLanguage(std::string const& ext)
|
||||||
{
|
{
|
||||||
// Try to identify the source file language from the extension.
|
// Try to identify the source file language from the extension.
|
||||||
cmMakefile const* mf = this->Location.GetMakefile();
|
cmMakefile const* mf = this->Location.GetMakefile();
|
||||||
cmGlobalGenerator* gg = mf->GetLocalGenerator()->GetGlobalGenerator();
|
cmGlobalGenerator* gg = mf->GetGlobalGenerator();
|
||||||
std::string l = gg->GetLanguageFromExtension(ext.c_str());
|
std::string l = gg->GetLanguageFromExtension(ext.c_str());
|
||||||
if(!l.empty())
|
if(!l.empty())
|
||||||
{
|
{
|
||||||
|
|
|
@ -120,8 +120,7 @@ void cmSourceFileLocation::UpdateExtension(const std::string& name)
|
||||||
if(!ext.empty()) { ext = ext.substr(1); }
|
if(!ext.empty()) { ext = ext.substr(1); }
|
||||||
|
|
||||||
// The global generator checks extensions of enabled languages.
|
// The global generator checks extensions of enabled languages.
|
||||||
cmGlobalGenerator* gg =
|
cmGlobalGenerator* gg = this->Makefile->GetGlobalGenerator();
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
|
||||||
cmMakefile const* mf = this->Makefile;
|
cmMakefile const* mf = this->Makefile;
|
||||||
const std::vector<std::string>& srcExts = mf->GetSourceExtensions();
|
const std::vector<std::string>& srcExts = mf->GetSourceExtensions();
|
||||||
const std::vector<std::string>& hdrExts = mf->GetHeaderExtensions();
|
const std::vector<std::string>& hdrExts = mf->GetHeaderExtensions();
|
||||||
|
|
|
@ -511,7 +511,7 @@ void cmTarget::FinishConfigure()
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||||
// Do old-style link dependency analysis only for CM_USE_OLD_VS6.
|
// Do old-style link dependency analysis only for CM_USE_OLD_VS6.
|
||||||
if(this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->IsForVS6())
|
if(this->Makefile->GetGlobalGenerator()->IsForVS6())
|
||||||
{
|
{
|
||||||
this->AnalyzeLibDependenciesForVS6(*this->Makefile);
|
this->AnalyzeLibDependenciesForVS6(*this->Makefile);
|
||||||
}
|
}
|
||||||
|
@ -847,8 +847,7 @@ cmTarget::GetConfigCommonSourceFiles(std::vector<cmSourceFile*>& files) const
|
||||||
std::ostringstream e;
|
std::ostringstream e;
|
||||||
e << "Target \"" << this->Name << "\" has source files which vary by "
|
e << "Target \"" << this->Name << "\" has source files which vary by "
|
||||||
"configuration. This is not supported by the \""
|
"configuration. This is not supported by the \""
|
||||||
<< this->Makefile->GetLocalGenerator()
|
<< this->Makefile->GetGlobalGenerator()->GetName()
|
||||||
->GetGlobalGenerator()->GetName()
|
|
||||||
<< "\" generator.\n"
|
<< "\" generator.\n"
|
||||||
"Config \"" << firstConfig << "\":\n"
|
"Config \"" << firstConfig << "\":\n"
|
||||||
" " << firstConfigFiles << "\n"
|
" " << firstConfigFiles << "\n"
|
||||||
|
@ -1188,7 +1187,7 @@ void cmTarget::ClearDependencyInformation( cmMakefile& mf,
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmTarget::NameResolvesToFramework(const std::string& libname) const
|
bool cmTarget::NameResolvesToFramework(const std::string& libname) const
|
||||||
{
|
{
|
||||||
return this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
return this->Makefile->GetGlobalGenerator()->
|
||||||
NameResolvesToFramework(libname);
|
NameResolvesToFramework(libname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3329,7 +3328,7 @@ public:
|
||||||
cmTargetSelectLinker(cmTarget const* target): Preference(0), Target(target)
|
cmTargetSelectLinker(cmTarget const* target): Preference(0), Target(target)
|
||||||
{
|
{
|
||||||
this->Makefile = this->Target->GetMakefile();
|
this->Makefile = this->Target->GetMakefile();
|
||||||
this->GG = this->Makefile->GetLocalGenerator()->GetGlobalGenerator();
|
this->GG = this->Makefile->GetGlobalGenerator();
|
||||||
}
|
}
|
||||||
void Consider(const std::string& lang)
|
void Consider(const std::string& lang)
|
||||||
{
|
{
|
||||||
|
@ -3764,7 +3763,7 @@ bool cmTarget::MacOSXRpathInstallNameDirDefault() const
|
||||||
|
|
||||||
if(cmp0042 == cmPolicies::WARN)
|
if(cmp0042 == cmPolicies::WARN)
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
this->Makefile->GetGlobalGenerator()->
|
||||||
AddCMP0042WarnTarget(this->GetName());
|
AddCMP0042WarnTarget(this->GetName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4551,7 +4550,7 @@ bool cmTarget::ComputeOutputDir(const std::string& config,
|
||||||
"CMAKE_XCODE_EFFECTIVE_PLATFORMS");
|
"CMAKE_XCODE_EFFECTIVE_PLATFORMS");
|
||||||
std::string suffix =
|
std::string suffix =
|
||||||
usesDefaultOutputDir && platforms ? "$(EFFECTIVE_PLATFORM_NAME)" : "";
|
usesDefaultOutputDir && platforms ? "$(EFFECTIVE_PLATFORM_NAME)" : "";
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
this->Makefile->GetGlobalGenerator()->
|
||||||
AppendDirectoryForConfig("/", conf, suffix, out);
|
AppendDirectoryForConfig("/", conf, suffix, out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4613,7 +4612,7 @@ bool cmTarget::ComputePDBOutputDir(const std::string& kind,
|
||||||
// The generator may add the configuration's subdirectory.
|
// The generator may add the configuration's subdirectory.
|
||||||
if(!conf.empty())
|
if(!conf.empty())
|
||||||
{
|
{
|
||||||
this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
|
this->Makefile->GetGlobalGenerator()->
|
||||||
AppendDirectoryForConfig("/", conf, "", out);
|
AppendDirectoryForConfig("/", conf, "", out);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -5276,8 +5275,7 @@ void cmTarget::GetLanguages(std::set<std::string>& languages,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cmGeneratorTarget* gt = this->Makefile->GetLocalGenerator()
|
cmGeneratorTarget* gt = this->Makefile->GetGlobalGenerator()
|
||||||
->GetGlobalGenerator()
|
|
||||||
->GetGeneratorTarget(this);
|
->GetGeneratorTarget(this);
|
||||||
gt->GetExternalObjects(externalObjects, config);
|
gt->GetExternalObjects(externalObjects, config);
|
||||||
for(std::vector<cmSourceFile const*>::const_iterator
|
for(std::vector<cmSourceFile const*>::const_iterator
|
||||||
|
|
Loading…
Reference in New Issue