diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-04 15:30:46 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-04 15:30:46 (GMT) |
commit | de10cfc72e51094d3a8f3a8d10f09a902330a2f3 (patch) | |
tree | 19175a07cd503bb427d1f394dc9a7d555b28246f /Source/cmDSWWriter.cxx | |
parent | 33e1a4a09aaedfcb869e2f4217815e09f0d3187f (diff) | |
download | CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.zip CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.gz CMake-de10cfc72e51094d3a8f3a8d10f09a902330a2f3.tar.bz2 |
ENH: move testing stuff to cmake from configure, good bye dashboard... :)
Diffstat (limited to 'Source/cmDSWWriter.cxx')
-rw-r--r-- | Source/cmDSWWriter.cxx | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/Source/cmDSWWriter.cxx b/Source/cmDSWWriter.cxx index cd7c292..723784a 100644 --- a/Source/cmDSWWriter.cxx +++ b/Source/cmDSWWriter.cxx @@ -122,10 +122,8 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) // than one dsp could have been created per input CMakeLists.txt file // for each target std::vector<std::string> dspnames = pg->GetDSPMakefile()->GetCreatedProjectNames(); - const cmTargets &tgts = pg->GetDSPMakefile()->GetMakefile()->GetTargets(); - cmTargets::const_iterator l = tgts.begin(); - std::vector<std::string> originalUtilities; - bool addedUtilities = false; + cmTargets &tgts = pg->GetDSPMakefile()->GetMakefile()->GetTargets(); + cmTargets::iterator l = tgts.begin(); for(std::vector<std::string>::iterator si = dspnames.begin(); l != tgts.end(); ++l, ++si) { @@ -139,8 +137,6 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) // vector on the makefile if(l->first == "ALL_BUILD") { - addedUtilities = true; - originalUtilities = m_Makefile->GetUtilities(); for(std::vector<cmMakefile*>::iterator a = allListFiles.begin(); a != allListFiles.end(); ++a) { @@ -150,7 +146,8 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) { if(al->second.GetType() != cmTarget::UTILITY) { - m_Makefile->GetUtilities().push_back(al->first); + l->second.GetLinkLibraries().push_back( + cmTarget::LinkLibraries::value_type(al->first, cmTarget::GENERAL)); } } } @@ -159,11 +156,6 @@ void cmDSWMakefile::WriteDSWFile(std::ostream& fout) // Write the project into the DSW file this->WriteProject(fout, si->c_str(), dir.c_str(), pg->GetDSPMakefile(),l->second); - if(addedUtilities) - { - m_Makefile->GetUtilities() = originalUtilities; - } - } // delete the cmMakefile which also deletes the cmMSProjectGenerator if(mf != m_Makefile) |