diff options
author | Brad King <brad.king@kitware.com> | 2008-01-27 18:42:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-27 18:42:49 (GMT) |
commit | 99b97dece82ccfc940b60e3cdb01a0368464629f (patch) | |
tree | 7e73a624973a653f2b3b37dbe750ccf8c5428f02 /Source/cmTarget.cxx | |
parent | c631aa2a872753e07d5fb27b5ad7f1d30749362f (diff) | |
download | CMake-99b97dece82ccfc940b60e3cdb01a0368464629f.zip CMake-99b97dece82ccfc940b60e3cdb01a0368464629f.tar.gz CMake-99b97dece82ccfc940b60e3cdb01a0368464629f.tar.bz2 |
ENH: Created cmComputeLinkDepends to compute link dependencies.
- This will be useful for imported library dependencies
- Replaces old cmTarget analyze-lib-depends stuff for linking
- Formalizes graph construction and dump
- Explicitly represents dependency inferral sets
- Use BFS of initial dependencies to preserve order
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ab303ab..274c3af 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -891,6 +891,7 @@ void cmTarget::AddLinkLibrary(const std::string& lib, tmp.first = lib; tmp.second = llt; this->LinkLibraries.push_back(tmp); + this->OriginalLinkLibraries.push_back(tmp); } //---------------------------------------------------------------------------- @@ -936,6 +937,7 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf, tmp.first = lib; tmp.second = llt; this->LinkLibraries.push_back( tmp ); + this->OriginalLinkLibraries.push_back(tmp); // Add the explicit dependency information for this target. This is // simply a set of libraries separated by ";". There should always @@ -1068,11 +1070,6 @@ cmTarget::AnalyzeLibDependencies( const cmMakefile& mf ) // The dependency map. DependencyMap dep_map; - if ( this->OriginalLinkLibraries.size() == 0 ) - { - this->OriginalLinkLibraries = this->LinkLibraries; - } - // 1. Build the dependency graph // for(LinkLibraryVectorType::reverse_iterator lib |