cmTarget: Remove a conditional for generate-time source addition.
It is not really necessary.
This commit is contained in:
parent
fe113f0fd4
commit
da1b0449d9
|
@ -968,19 +968,12 @@ cmSourceFile* cmTarget::AddSource(const std::string& src)
|
||||||
|
|
||||||
void cmTarget::AddGenerateTimeSource(const std::string& src)
|
void cmTarget::AddGenerateTimeSource(const std::string& src)
|
||||||
{
|
{
|
||||||
cmSourceFileLocation sfl(this->Makefile, src);
|
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
||||||
if (std::find_if(this->Internal->SourceEntries.begin(),
|
cmGeneratorExpression ge(lfbt);
|
||||||
this->Internal->SourceEntries.end(),
|
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(src);
|
||||||
TargetPropertyEntryFinder(sfl))
|
cge->SetEvaluateForBuildsystem(true);
|
||||||
== this->Internal->SourceEntries.end())
|
this->Internal->SourceItems.push_back(
|
||||||
{
|
new cmTargetInternals::TargetPropertyEntry(cge));
|
||||||
cmListFileBacktrace lfbt = this->Makefile->GetBacktrace();
|
|
||||||
cmGeneratorExpression ge(lfbt);
|
|
||||||
cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse(src);
|
|
||||||
cge->SetEvaluateForBuildsystem(true);
|
|
||||||
this->Internal->SourceItems.push_back(
|
|
||||||
new cmTargetInternals::TargetPropertyEntry(cge));
|
|
||||||
}
|
|
||||||
this->AddSource(src);
|
this->AddSource(src);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue