diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-03 23:46:52 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-03-03 23:46:52 (GMT) |
commit | 16b65d86c9842b04cf1abda0604a23956f5a7e33 (patch) | |
tree | 35ab79a5ff825ecb81490d40f95f6f342478bcfd /Source/cmOrderLinkDirectories.cxx | |
parent | ded7d151446dd889956c294188c7bf65e3063e96 (diff) | |
download | CMake-16b65d86c9842b04cf1abda0604a23956f5a7e33.zip CMake-16b65d86c9842b04cf1abda0604a23956f5a7e33.tar.gz CMake-16b65d86c9842b04cf1abda0604a23956f5a7e33.tar.bz2 |
ENH: try and debug the failed test on the continuous
Diffstat (limited to 'Source/cmOrderLinkDirectories.cxx')
-rw-r--r-- | Source/cmOrderLinkDirectories.cxx | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Source/cmOrderLinkDirectories.cxx b/Source/cmOrderLinkDirectories.cxx index df466e1..5c98b82 100644 --- a/Source/cmOrderLinkDirectories.cxx +++ b/Source/cmOrderLinkDirectories.cxx @@ -5,6 +5,12 @@ //------------------------------------------------------------------- +cmOrderLinkDirectories::cmOrderLinkDirectories() +{ + m_Debug = false; +} + +//------------------------------------------------------------------- bool cmOrderLinkDirectories::LibraryInDirectory(const char* dir, const char* libIn) { @@ -272,7 +278,11 @@ bool cmOrderLinkDirectories::DetermineLibraryPathOrder() } this->FindIndividualLibraryOrders(); m_SortedSearchPaths.clear(); - + if(m_Debug) + { + this->PrintMap("m_LibraryToDirectories", m_LibraryToDirectories); + this->PrintMap("m_DirectoryToAfterList", m_DirectoryToAfterList); + } this->OrderPaths(m_SortedSearchPaths); // now turn libfoo.a into foo and foo.a into foo // This will prepare the link items for -litem @@ -317,18 +327,18 @@ void cmOrderLinkDirectories::PrintMap(const char* name, std::map<cmStdString, std::vector<cmStdString> >& m) { - std::cerr << name << "\n"; + std::cout << name << "\n"; for(std::map<cmStdString, std::vector<cmStdString> >::iterator i = m.begin(); i != m.end(); ++i) { - std::cerr << i->first << ": "; + std::cout << i->first << ": "; for(std::vector<cmStdString>::iterator l = i->second.begin(); l != i->second.end(); ++l) { - std::cerr << *l << " "; + std::cout << *l << " "; } - std::cerr << "\n"; + std::cout << "\n"; } } |