summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmTarget.cxx4
-rw-r--r--Source/cmTarget.h1
2 files changed, 0 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 5b878d3..0e7e2a5 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -479,9 +479,6 @@ cmSourceFile* cmTarget::AddSource(const std::string& src)
void cmTarget::MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
const LinkLibraryVectorType& libs)
{
- assert(this->PrevLinkedLibraries.empty());
- // Only add on libraries we haven't added on before.
- // Assumption: the global link libraries could only grow, never shrink
LinkLibraryVectorType::const_iterator i = libs.begin();
for (; i != libs.end(); ++i) {
// This is equivalent to the target_link_libraries plain signature.
@@ -490,7 +487,6 @@ void cmTarget::MergeLinkLibraries(cmMakefile& mf, const std::string& selfname,
"INTERFACE_LINK_LIBRARIES",
this->GetDebugGeneratorExpressions(i->first, i->second).c_str());
}
- this->PrevLinkedLibraries = libs;
}
void cmTarget::AddLinkDirectory(const std::string& d)
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index dd9097a..f062529 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -299,7 +299,6 @@ private:
std::vector<cmCustomCommand> PreLinkCommands;
std::vector<cmCustomCommand> PostBuildCommands;
std::vector<std::pair<TLLSignature, cmListFileContext> > TLLCommands;
- LinkLibraryVectorType PrevLinkedLibraries;
LinkLibraryVectorType OriginalLinkLibraries;
cmMakefile* Makefile;
cmTargetInternalPointer Internal;