diff options
author | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 18:00:21 (GMT) |
---|---|---|
committer | Amitha Perera <perera@cs.rpi.edu> | 2002-05-01 18:00:21 (GMT) |
commit | 1f8df8585ef36aa980d13a0cb6646de399bceff9 (patch) | |
tree | 3106ab0d6e942aa15c783425316235c75c790e8b /Source/cmMSDotNETGenerator.cxx | |
parent | d53458de9ac298344a87d6703de78991d6770832 (diff) | |
download | CMake-1f8df8585ef36aa980d13a0cb6646de399bceff9.zip CMake-1f8df8585ef36aa980d13a0cb6646de399bceff9.tar.gz CMake-1f8df8585ef36aa980d13a0cb6646de399bceff9.tar.bz2 |
ENH: Add library dependency analysis.
Diffstat (limited to 'Source/cmMSDotNETGenerator.cxx')
-rw-r--r-- | Source/cmMSDotNETGenerator.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmMSDotNETGenerator.cxx b/Source/cmMSDotNETGenerator.cxx index 58ee5fd..ff5e27c 100644 --- a/Source/cmMSDotNETGenerator.cxx +++ b/Source/cmMSDotNETGenerator.cxx @@ -240,9 +240,7 @@ void cmMSDotNETGenerator::WriteSLNFile(std::ostream& fout) } else { - l->second.GetLinkLibraries().push_back( - cmTarget::LinkLibraries::value_type(al->first, - cmTarget::GENERAL)); + l->second.AddLinkLibrary(al->first,cmTarget::GENERAL); } } } @@ -907,7 +905,7 @@ void cmMSDotNETGenerator::OutputModuleDefinitionFile(std::ostream& fout, void cmMSDotNETGenerator::OutputLibraryDirectories(std::ostream& fout, const char*, const char*, - const cmTarget &) + const cmTarget &tgt) { bool hasone = false; if(m_LibraryOutputPath.size()) @@ -922,8 +920,8 @@ void cmMSDotNETGenerator::OutputLibraryDirectories(std::ostream& fout, } std::set<std::string> pathEmitted; - std::vector<std::string>::iterator i; - std::vector<std::string>& libdirs = m_Makefile->GetLinkDirectories(); + std::vector<std::string>::const_iterator i; + const std::vector<std::string>& libdirs = tgt.GetLinkDirectories(); for(i = libdirs.begin(); i != libdirs.end(); ++i) { std::string lpath = *i; |