From da1b0449d96d4044bc4633a40ac87b6d4a19912d Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 12 Sep 2015 21:51:10 +0200 Subject: [PATCH] cmTarget: Remove a conditional for generate-time source addition. It is not really necessary. --- Source/cmTarget.cxx | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 6e1c4889e..fc9e96315 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -968,19 +968,12 @@ cmSourceFile* cmTarget::AddSource(const std::string& src) void cmTarget::AddGenerateTimeSource(const std::string& src) { - cmSourceFileLocation sfl(this->Makefile, src); - if (std::find_if(this->Internal->SourceEntries.begin(), - this->Internal->SourceEntries.end(), - TargetPropertyEntryFinder(sfl)) - == this->Internal->SourceEntries.end()) - { - cmListFileBacktrace lfbt = this->Makefile->GetBacktrace(); - cmGeneratorExpression ge(lfbt); - cmsys::auto_ptr cge = ge.Parse(src); - cge->SetEvaluateForBuildsystem(true); - this->Internal->SourceItems.push_back( - new cmTargetInternals::TargetPropertyEntry(cge)); - } + cmListFileBacktrace lfbt = this->Makefile->GetBacktrace(); + cmGeneratorExpression ge(lfbt); + cmsys::auto_ptr cge = ge.Parse(src); + cge->SetEvaluateForBuildsystem(true); + this->Internal->SourceItems.push_back( + new cmTargetInternals::TargetPropertyEntry(cge)); this->AddSource(src); }