Merge topic 'minor-cleanups'
cff2dc34 cmLocalUnixMakefileGenerator3: Port away from the Parent. 5505bff7 cmMakefile: Add include which we use. 2007d11c cmState: Remove unused variable. a622b829 cmGetCMakePropertyCommand: Clean up VARIABLES handling. 52f22616 cmListFileBacktrace: Constify API. fc1c7cf8 Genex: Store a backtrace, not a pointer to one. 4dc45707 cmMakefile: Fix indentation. 12c82fd8 cmMakefile: Remove dead code. f19653eb CodeLite: Remove unused code.
This commit is contained in:
commit
ce597a022b
@ -21,7 +21,7 @@ cmCustomCommandGenerator::cmCustomCommandGenerator(
|
|||||||
cmCustomCommand const& cc, const std::string& config, cmMakefile* mf):
|
cmCustomCommand const& cc, const std::string& config, cmMakefile* mf):
|
||||||
CC(cc), Config(config), Makefile(mf),
|
CC(cc), Config(config), Makefile(mf),
|
||||||
OldStyle(cc.GetEscapeOldStyle()), MakeVars(cc.GetEscapeAllowMakeVars()),
|
OldStyle(cc.GetEscapeOldStyle()), MakeVars(cc.GetEscapeAllowMakeVars()),
|
||||||
GE(new cmGeneratorExpression(&cc.GetBacktrace())), DependsDone(false)
|
GE(new cmGeneratorExpression(cc.GetBacktrace())), DependsDone(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,24 +141,6 @@ void cmExtraCodeLiteGenerator
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// figure out the compiler
|
|
||||||
//std::string compiler = this->GetCBCompilerId(mf);
|
|
||||||
std::string workspaceSourcePath = mf->GetHomeDirectory();
|
|
||||||
std::string workspaceOutputDir = mf->GetHomeOutputDirectory();
|
|
||||||
std::vector<std::string> outputFiles = mf->GetOutputFiles();
|
|
||||||
std::string projectName = mf->GetProjectName();
|
|
||||||
std::string incDirs;
|
|
||||||
std::vector<cmValueWithOrigin> incDirsVec =
|
|
||||||
mf->GetIncludeDirectoriesEntries();
|
|
||||||
std::vector<cmValueWithOrigin>::const_iterator iterInc = incDirsVec.begin();
|
|
||||||
|
|
||||||
//std::cout << "GetIncludeDirectories:" << std::endl;
|
|
||||||
for(; iterInc != incDirsVec.end(); ++iterInc )
|
|
||||||
{
|
|
||||||
//std::cout << (*ItStrVec) << std::endl;
|
|
||||||
incDirs += iterInc->Value + " ";
|
|
||||||
}
|
|
||||||
|
|
||||||
////////////////////////////////////
|
////////////////////////////////////
|
||||||
fout << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
|
fout << "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
|
||||||
"<CodeLite_Project Name=\"" << mf->GetProjectName()
|
"<CodeLite_Project Name=\"" << mf->GetProjectName()
|
||||||
|
@ -3565,11 +3565,11 @@ void cmFileCommand::AddEvaluationFile(const std::string &inputName,
|
|||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
|
|
||||||
cmGeneratorExpression outputGe(&lfbt);
|
cmGeneratorExpression outputGe(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> outputCge
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> outputCge
|
||||||
= outputGe.Parse(outputExpr);
|
= outputGe.Parse(outputExpr);
|
||||||
|
|
||||||
cmGeneratorExpression conditionGe(&lfbt);
|
cmGeneratorExpression conditionGe(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> conditionCge
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> conditionCge
|
||||||
= conditionGe.Parse(condition);
|
= conditionGe.Parse(condition);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
cmGeneratorExpression::cmGeneratorExpression(
|
cmGeneratorExpression::cmGeneratorExpression(
|
||||||
cmListFileBacktrace const* backtrace):
|
const cmListFileBacktrace& backtrace):
|
||||||
Backtrace(backtrace)
|
Backtrace(backtrace)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -33,9 +33,7 @@ cmsys::auto_ptr<cmCompiledGeneratorExpression>
|
|||||||
cmGeneratorExpression::Parse(std::string const& input)
|
cmGeneratorExpression::Parse(std::string const& input)
|
||||||
{
|
{
|
||||||
return cmsys::auto_ptr<cmCompiledGeneratorExpression>(
|
return cmsys::auto_ptr<cmCompiledGeneratorExpression>(
|
||||||
new cmCompiledGeneratorExpression(
|
new cmCompiledGeneratorExpression(this->Backtrace, input));
|
||||||
this->Backtrace ? *this->Backtrace : cmListFileBacktrace(),
|
|
||||||
input));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
@ -42,7 +42,8 @@ class cmGeneratorExpression
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/** Construct. */
|
/** Construct. */
|
||||||
cmGeneratorExpression(cmListFileBacktrace const* backtrace = NULL);
|
cmGeneratorExpression(
|
||||||
|
cmListFileBacktrace const& backtrace = cmListFileBacktrace());
|
||||||
~cmGeneratorExpression();
|
~cmGeneratorExpression();
|
||||||
|
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> Parse(
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> Parse(
|
||||||
@ -71,7 +72,7 @@ private:
|
|||||||
cmGeneratorExpression(const cmGeneratorExpression &);
|
cmGeneratorExpression(const cmGeneratorExpression &);
|
||||||
void operator=(const cmGeneratorExpression &);
|
void operator=(const cmGeneratorExpression &);
|
||||||
|
|
||||||
cmListFileBacktrace const* Backtrace;
|
cmListFileBacktrace Backtrace;
|
||||||
};
|
};
|
||||||
|
|
||||||
class cmCompiledGeneratorExpression
|
class cmCompiledGeneratorExpression
|
||||||
|
@ -152,7 +152,7 @@ void cmGeneratorExpressionEvaluationFile::Generate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmListFileBacktrace lfbt = this->OutputFileExpr->GetBacktrace();
|
cmListFileBacktrace lfbt = this->OutputFileExpr->GetBacktrace();
|
||||||
cmGeneratorExpression contentGE(&lfbt);
|
cmGeneratorExpression contentGE(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> inputExpression
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> inputExpression
|
||||||
= contentGE.Parse(inputContent);
|
= contentGE.Parse(inputContent);
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ std::string cmGeneratorExpressionNode::EvaluateDependentExpression(
|
|||||||
cmTarget const* headTarget, cmTarget const* currentTarget,
|
cmTarget const* headTarget, cmTarget const* currentTarget,
|
||||||
cmGeneratorExpressionDAGChecker *dagChecker)
|
cmGeneratorExpressionDAGChecker *dagChecker)
|
||||||
{
|
{
|
||||||
cmGeneratorExpression ge(&context->Backtrace);
|
cmGeneratorExpression ge(context->Backtrace);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(prop);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(prop);
|
||||||
cge->SetEvaluateForBuildsystem(context->EvaluateForBuildsystem);
|
cge->SetEvaluateForBuildsystem(context->EvaluateForBuildsystem);
|
||||||
std::string result = cge->Evaluate(makefile,
|
std::string result = cge->Evaluate(makefile,
|
||||||
|
@ -878,7 +878,7 @@ cmTargetTraceDependencies
|
|||||||
{
|
{
|
||||||
// Transform command names that reference targets built in this
|
// Transform command names that reference targets built in this
|
||||||
// project to corresponding target-level dependencies.
|
// project to corresponding target-level dependencies.
|
||||||
cmGeneratorExpression ge(&cc.GetBacktrace());
|
cmGeneratorExpression ge(cc.GetBacktrace());
|
||||||
|
|
||||||
// Add target-level dependencies referenced by generator expressions.
|
// Add target-level dependencies referenced by generator expressions.
|
||||||
std::set<cmTarget*> targets;
|
std::set<cmTarget*> targets;
|
||||||
|
@ -32,10 +32,9 @@ bool cmGetCMakePropertyCommand
|
|||||||
|
|
||||||
if ( args[1] == "VARIABLES" )
|
if ( args[1] == "VARIABLES" )
|
||||||
{
|
{
|
||||||
std::vector<std::string> vars = this->Makefile->GetDefinitions();
|
if (const char* varsProp = this->Makefile->GetProperty("VARIABLES"))
|
||||||
if (!vars.empty())
|
|
||||||
{
|
{
|
||||||
output = cmJoin(vars, ";");
|
output = varsProp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( args[1] == "MACROS" )
|
else if ( args[1] == "MACROS" )
|
||||||
|
@ -44,7 +44,7 @@ cmInstalledFile::Property::~Property()
|
|||||||
void cmInstalledFile::SetName(cmMakefile* mf, const std::string& name)
|
void cmInstalledFile::SetName(cmMakefile* mf, const std::string& name)
|
||||||
{
|
{
|
||||||
cmListFileBacktrace backtrace = mf->GetBacktrace();
|
cmListFileBacktrace backtrace = mf->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&backtrace);
|
cmGeneratorExpression ge(backtrace);
|
||||||
|
|
||||||
this->Name = name;
|
this->Name = name;
|
||||||
this->NameExpression = ge.Parse(name).release();
|
this->NameExpression = ge.Parse(name).release();
|
||||||
@ -81,7 +81,7 @@ void cmInstalledFile::AppendProperty(cmMakefile const* mf,
|
|||||||
const std::string& prop, const char* value, bool /*asString*/)
|
const std::string& prop, const char* value, bool /*asString*/)
|
||||||
{
|
{
|
||||||
cmListFileBacktrace backtrace = mf->GetBacktrace();
|
cmListFileBacktrace backtrace = mf->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&backtrace);
|
cmGeneratorExpression ge(backtrace);
|
||||||
|
|
||||||
Property& property = this->Properties[prop];
|
Property& property = this->Properties[prop];
|
||||||
property.ValueExpressions.push_back(ge.Parse(value).release());
|
property.ValueExpressions.push_back(ge.Parse(value).release());
|
||||||
|
@ -398,7 +398,7 @@ bool cmListFileParser::AddArgument(cmListFileLexer_Token* token,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmListFileBacktrace::PrintTitle(std::ostream& out)
|
void cmListFileBacktrace::PrintTitle(std::ostream& out) const
|
||||||
{
|
{
|
||||||
if (!this->Snapshot.IsValid())
|
if (!this->Snapshot.IsValid())
|
||||||
{
|
{
|
||||||
@ -412,7 +412,7 @@ void cmListFileBacktrace::PrintTitle(std::ostream& out)
|
|||||||
out << (lfc.Line ? " at " : " in ") << lfc;
|
out << (lfc.Line ? " at " : " in ") << lfc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cmListFileBacktrace::PrintCallStack(std::ostream& out)
|
void cmListFileBacktrace::PrintCallStack(std::ostream& out) const
|
||||||
{
|
{
|
||||||
if (!this->Snapshot.IsValid())
|
if (!this->Snapshot.IsValid())
|
||||||
{
|
{
|
||||||
|
@ -95,8 +95,8 @@ class cmListFileBacktrace
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintTitle(std::ostream& out);
|
void PrintTitle(std::ostream& out) const;
|
||||||
void PrintCallStack(std::ostream& out);
|
void PrintCallStack(std::ostream& out) const;
|
||||||
private:
|
private:
|
||||||
cmCommandContext Context;
|
cmCommandContext Context;
|
||||||
cmState::Snapshot Snapshot;
|
cmState::Snapshot Snapshot;
|
||||||
|
@ -256,7 +256,7 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// always write the top makefile
|
// always write the top makefile
|
||||||
if (this->Parent)
|
if (!this->GetMakefile()->IsRootMakefile())
|
||||||
{
|
{
|
||||||
ruleFileStream.SetCopyIfDifferent(true);
|
ruleFileStream.SetCopyIfDifferent(true);
|
||||||
}
|
}
|
||||||
@ -267,7 +267,7 @@ void cmLocalUnixMakefileGenerator3::WriteLocalMakefile()
|
|||||||
// only write local targets unless at the top Keep track of targets already
|
// only write local targets unless at the top Keep track of targets already
|
||||||
// listed.
|
// listed.
|
||||||
std::set<std::string> emittedTargets;
|
std::set<std::string> emittedTargets;
|
||||||
if (this->Parent)
|
if (!this->GetMakefile()->IsRootMakefile())
|
||||||
{
|
{
|
||||||
// write our targets, and while doing it collect up the object
|
// write our targets, and while doing it collect up the object
|
||||||
// file rules
|
// file rules
|
||||||
@ -888,7 +888,7 @@ void cmLocalUnixMakefileGenerator3
|
|||||||
std::vector<std::string> no_depends;
|
std::vector<std::string> no_depends;
|
||||||
std::vector<std::string> commands;
|
std::vector<std::string> commands;
|
||||||
commands.push_back(runRule);
|
commands.push_back(runRule);
|
||||||
if(this->Parent)
|
if(!this->GetMakefile()->IsRootMakefile())
|
||||||
{
|
{
|
||||||
this->CreateCDCommand(commands,
|
this->CreateCDCommand(commands,
|
||||||
this->Makefile->GetHomeOutputDirectory(),
|
this->Makefile->GetHomeOutputDirectory(),
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "cmLocalGenerator.h"
|
#include "cmLocalGenerator.h"
|
||||||
#include "cmCommands.h"
|
#include "cmCommands.h"
|
||||||
#include "cmState.h"
|
#include "cmState.h"
|
||||||
|
#include "cmOutputConverter.h"
|
||||||
#include "cmFunctionBlocker.h"
|
#include "cmFunctionBlocker.h"
|
||||||
#include "cmListFileCache.h"
|
#include "cmListFileCache.h"
|
||||||
#include "cmCommandArgumentParserHelper.h"
|
#include "cmCommandArgumentParserHelper.h"
|
||||||
@ -4189,16 +4190,6 @@ void cmMakefile::SetProperty(const std::string& prop, const char* value)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( prop == "ADDITIONAL_MAKE_CLEAN_FILES" )
|
|
||||||
{
|
|
||||||
// This property is not inherrited
|
|
||||||
if ( strcmp(this->GetCurrentSourceDirectory(),
|
|
||||||
this->GetCurrentSourceDirectory()) != 0 )
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
this->Properties.SetProperty(prop, value);
|
this->Properties.SetProperty(prop, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,8 +470,6 @@ void cmState::AppendGlobalProperty(const std::string& prop,
|
|||||||
|
|
||||||
const char *cmState::GetGlobalProperty(const std::string& prop)
|
const char *cmState::GetGlobalProperty(const std::string& prop)
|
||||||
{
|
{
|
||||||
// watch for special properties
|
|
||||||
std::string output = "";
|
|
||||||
if ( prop == "CACHE_VARIABLES" )
|
if ( prop == "CACHE_VARIABLES" )
|
||||||
{
|
{
|
||||||
std::vector<std::string> cacheKeys = this->GetCacheEntryKeys();
|
std::vector<std::string> cacheKeys = this->GetCacheEntryKeys();
|
||||||
|
@ -916,7 +916,7 @@ void cmTarget::AddTracedSources(std::vector<std::string> const& srcs)
|
|||||||
this->Internal->SourceFilesMap.clear();
|
this->Internal->SourceFilesMap.clear();
|
||||||
this->LinkImplementationLanguageIsContextDependent = true;
|
this->LinkImplementationLanguageIsContextDependent = true;
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(srcFiles);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(srcFiles);
|
||||||
cge->SetEvaluateForBuildsystem(true);
|
cge->SetEvaluateForBuildsystem(true);
|
||||||
this->Internal->SourceEntries.push_back(
|
this->Internal->SourceEntries.push_back(
|
||||||
@ -956,7 +956,7 @@ void cmTarget::AddSources(std::vector<std::string> const& srcs)
|
|||||||
this->Internal->SourceFilesMap.clear();
|
this->Internal->SourceFilesMap.clear();
|
||||||
this->LinkImplementationLanguageIsContextDependent = true;
|
this->LinkImplementationLanguageIsContextDependent = true;
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(srcFiles);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(srcFiles);
|
||||||
cge->SetEvaluateForBuildsystem(true);
|
cge->SetEvaluateForBuildsystem(true);
|
||||||
this->Internal->SourceEntries.push_back(
|
this->Internal->SourceEntries.push_back(
|
||||||
@ -1089,7 +1089,7 @@ cmSourceFile* cmTarget::AddSource(const std::string& src)
|
|||||||
this->Internal->SourceFilesMap.clear();
|
this->Internal->SourceFilesMap.clear();
|
||||||
this->LinkImplementationLanguageIsContextDependent = true;
|
this->LinkImplementationLanguageIsContextDependent = true;
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(src);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(src);
|
||||||
cge->SetEvaluateForBuildsystem(true);
|
cge->SetEvaluateForBuildsystem(true);
|
||||||
this->Internal->SourceEntries.push_back(
|
this->Internal->SourceEntries.push_back(
|
||||||
@ -1710,7 +1710,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
|
|||||||
else if(prop == "INCLUDE_DIRECTORIES")
|
else if(prop == "INCLUDE_DIRECTORIES")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
deleteAndClear(this->Internal->IncludeDirectoriesEntries);
|
deleteAndClear(this->Internal->IncludeDirectoriesEntries);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->IncludeDirectoriesEntries.push_back(
|
this->Internal->IncludeDirectoriesEntries.push_back(
|
||||||
@ -1719,7 +1719,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
|
|||||||
else if(prop == "COMPILE_OPTIONS")
|
else if(prop == "COMPILE_OPTIONS")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
deleteAndClear(this->Internal->CompileOptionsEntries);
|
deleteAndClear(this->Internal->CompileOptionsEntries);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->CompileOptionsEntries.push_back(
|
this->Internal->CompileOptionsEntries.push_back(
|
||||||
@ -1728,7 +1728,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
|
|||||||
else if(prop == "COMPILE_FEATURES")
|
else if(prop == "COMPILE_FEATURES")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
deleteAndClear(this->Internal->CompileFeaturesEntries);
|
deleteAndClear(this->Internal->CompileFeaturesEntries);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->CompileFeaturesEntries.push_back(
|
this->Internal->CompileFeaturesEntries.push_back(
|
||||||
@ -1737,7 +1737,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
|
|||||||
else if(prop == "COMPILE_DEFINITIONS")
|
else if(prop == "COMPILE_DEFINITIONS")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
deleteAndClear(this->Internal->CompileDefinitionsEntries);
|
deleteAndClear(this->Internal->CompileDefinitionsEntries);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->CompileDefinitionsEntries.push_back(
|
this->Internal->CompileDefinitionsEntries.push_back(
|
||||||
@ -1772,7 +1772,7 @@ void cmTarget::SetProperty(const std::string& prop, const char* value)
|
|||||||
}
|
}
|
||||||
this->Internal->SourceFilesMap.clear();
|
this->Internal->SourceFilesMap.clear();
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->SourceEntries.clear();
|
this->Internal->SourceEntries.clear();
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->SourceEntries.push_back(
|
this->Internal->SourceEntries.push_back(
|
||||||
@ -1808,28 +1808,28 @@ void cmTarget::AppendProperty(const std::string& prop, const char* value,
|
|||||||
else if(prop == "INCLUDE_DIRECTORIES")
|
else if(prop == "INCLUDE_DIRECTORIES")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->IncludeDirectoriesEntries.push_back(
|
this->Internal->IncludeDirectoriesEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
||||||
}
|
}
|
||||||
else if(prop == "COMPILE_OPTIONS")
|
else if(prop == "COMPILE_OPTIONS")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->CompileOptionsEntries.push_back(
|
this->Internal->CompileOptionsEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
||||||
}
|
}
|
||||||
else if(prop == "COMPILE_FEATURES")
|
else if(prop == "COMPILE_FEATURES")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->CompileFeaturesEntries.push_back(
|
this->Internal->CompileFeaturesEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
||||||
}
|
}
|
||||||
else if(prop == "COMPILE_DEFINITIONS")
|
else if(prop == "COMPILE_DEFINITIONS")
|
||||||
{
|
{
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->CompileDefinitionsEntries.push_back(
|
this->Internal->CompileDefinitionsEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
new cmTargetInternals::TargetPropertyEntry(ge.Parse(value)));
|
||||||
}
|
}
|
||||||
@ -1861,7 +1861,7 @@ void cmTarget::AppendProperty(const std::string& prop, const char* value,
|
|||||||
}
|
}
|
||||||
this->Internal->SourceFilesMap.clear();
|
this->Internal->SourceFilesMap.clear();
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
cmGeneratorExpression ge(&lfbt);
|
cmGeneratorExpression ge(lfbt);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(value);
|
||||||
this->Internal->SourceEntries.push_back(
|
this->Internal->SourceEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(cge));
|
new cmTargetInternals::TargetPropertyEntry(cge));
|
||||||
@ -1929,7 +1929,7 @@ void cmTarget::AppendBuildInterfaceIncludes()
|
|||||||
void cmTarget::InsertInclude(const cmValueWithOrigin &entry,
|
void cmTarget::InsertInclude(const cmValueWithOrigin &entry,
|
||||||
bool before)
|
bool before)
|
||||||
{
|
{
|
||||||
cmGeneratorExpression ge(&entry.Backtrace);
|
cmGeneratorExpression ge(entry.Backtrace);
|
||||||
|
|
||||||
std::vector<cmTargetInternals::TargetPropertyEntry*>::iterator position
|
std::vector<cmTargetInternals::TargetPropertyEntry*>::iterator position
|
||||||
= before ? this->Internal->IncludeDirectoriesEntries.begin()
|
= before ? this->Internal->IncludeDirectoriesEntries.begin()
|
||||||
@ -1943,7 +1943,7 @@ void cmTarget::InsertInclude(const cmValueWithOrigin &entry,
|
|||||||
void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
|
void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
|
||||||
bool before)
|
bool before)
|
||||||
{
|
{
|
||||||
cmGeneratorExpression ge(&entry.Backtrace);
|
cmGeneratorExpression ge(entry.Backtrace);
|
||||||
|
|
||||||
std::vector<cmTargetInternals::TargetPropertyEntry*>::iterator position
|
std::vector<cmTargetInternals::TargetPropertyEntry*>::iterator position
|
||||||
= before ? this->Internal->CompileOptionsEntries.begin()
|
= before ? this->Internal->CompileOptionsEntries.begin()
|
||||||
@ -1956,7 +1956,7 @@ void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmTarget::InsertCompileDefinition(const cmValueWithOrigin &entry)
|
void cmTarget::InsertCompileDefinition(const cmValueWithOrigin &entry)
|
||||||
{
|
{
|
||||||
cmGeneratorExpression ge(&entry.Backtrace);
|
cmGeneratorExpression ge(entry.Backtrace);
|
||||||
|
|
||||||
this->Internal->CompileDefinitionsEntries.push_back(
|
this->Internal->CompileDefinitionsEntries.push_back(
|
||||||
new cmTargetInternals::TargetPropertyEntry(ge.Parse(entry.Value)));
|
new cmTargetInternals::TargetPropertyEntry(ge.Parse(entry.Value)));
|
||||||
@ -6162,7 +6162,7 @@ void cmTargetInternals::AddInterfaceEntries(
|
|||||||
{
|
{
|
||||||
std::string genex =
|
std::string genex =
|
||||||
"$<TARGET_PROPERTY:" + *it + "," + prop + ">";
|
"$<TARGET_PROPERTY:" + *it + "," + prop + ">";
|
||||||
cmGeneratorExpression ge(&it->Backtrace);
|
cmGeneratorExpression ge(it->Backtrace);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(genex);
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(genex);
|
||||||
cge->SetEvaluateForBuildsystem(true);
|
cge->SetEvaluateForBuildsystem(true);
|
||||||
entries.push_back(
|
entries.push_back(
|
||||||
@ -6258,7 +6258,7 @@ cmTargetInternals::ComputeLinkImplementationLibraries(
|
|||||||
cmGeneratorExpressionDAGChecker dagChecker(
|
cmGeneratorExpressionDAGChecker dagChecker(
|
||||||
thisTarget->GetName(),
|
thisTarget->GetName(),
|
||||||
"LINK_LIBRARIES", 0, 0);
|
"LINK_LIBRARIES", 0, 0);
|
||||||
cmGeneratorExpression ge(&le->Backtrace);
|
cmGeneratorExpression ge(le->Backtrace);
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> const cge =
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> const cge =
|
||||||
ge.Parse(le->Value);
|
ge.Parse(le->Value);
|
||||||
std::string const evaluated =
|
std::string const evaluated =
|
||||||
|
@ -70,7 +70,7 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os,
|
|||||||
this->TestGenerated = true;
|
this->TestGenerated = true;
|
||||||
|
|
||||||
// Set up generator expression evaluation context.
|
// Set up generator expression evaluation context.
|
||||||
cmGeneratorExpression ge(&this->Test->GetBacktrace());
|
cmGeneratorExpression ge(this->Test->GetBacktrace());
|
||||||
|
|
||||||
// Start the test command.
|
// Start the test command.
|
||||||
os << indent << "add_test(" << this->Test->GetName() << " ";
|
os << indent << "add_test(" << this->Test->GetName() << " ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user