summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-09-12 19:51:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-07 06:37:57 (GMT)
commitda1b0449d96d4044bc4633a40ac87b6d4a19912d (patch)
tree30bbe88f2218a7f6d635ebe94b02ed92e3d45893 /Source/cmTarget.cxx
parentfe113f0fd40696e50ac9aac48297466e3b649ad5 (diff)
downloadCMake-da1b0449d96d4044bc4633a40ac87b6d4a19912d.zip
CMake-da1b0449d96d4044bc4633a40ac87b6d4a19912d.tar.gz
CMake-da1b0449d96d4044bc4633a40ac87b6d4a19912d.tar.bz2
cmTarget: Remove a conditional for generate-time source addition.
It is not really necessary.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx19
1 files changed, 6 insertions, 13 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 6e1c488..fc9e963 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<cmCompiledGeneratorExpression> 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<cmCompiledGeneratorExpression> cge = ge.Parse(src);
+ cge->SetEvaluateForBuildsystem(true);
+ this->Internal->SourceItems.push_back(
+ new cmTargetInternals::TargetPropertyEntry(cge));
this->AddSource(src);
}