diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:32 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-10-07 18:13:32 (GMT) |
commit | 8391b3015a82909828b7ada98e76d45aa11b892b (patch) | |
tree | 75cf3bc0f27285aa2ade888ea04b41bff7a10bae /Source/cmTarget.cxx | |
parent | 7a1e542ed7065ab300af11f5cb4cfe465de2e5e6 (diff) | |
download | CMake-8391b3015a82909828b7ada98e76d45aa11b892b.zip CMake-8391b3015a82909828b7ada98e76d45aa11b892b.tar.gz CMake-8391b3015a82909828b7ada98e76d45aa11b892b.tar.bz2 |
cmTarget: Add assert about link data
MergeLinkLibraries is called only from
cmMakefile::AddGlobalLinkInformation
which is only called immediately after creating a target.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 13a4744..28ef04a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -479,6 +479,7 @@ 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(); |