diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-03-09 21:28:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-03-09 21:28:44 (GMT) |
commit | ddb815c12542f80f42562877298a73fab39bb4ca (patch) | |
tree | 825a90988e4710274a656b8f9bf7f32b7d0827fa /Source/cmMakefile.cxx | |
parent | bf699505bc7fc378abf07ec4dfa0f0cc4fb89686 (diff) | |
download | CMake-ddb815c12542f80f42562877298a73fab39bb4ca.zip CMake-ddb815c12542f80f42562877298a73fab39bb4ca.tar.gz CMake-ddb815c12542f80f42562877298a73fab39bb4ca.tar.bz2 |
ENH: add new subdirectory exclude from top option
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index f53b3bb..cc1721c 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -142,6 +142,17 @@ void cmMakefile::PrintStringVector(const char* s, const std::vector<std::string> std::cout << " )\n"; } +void cmMakefile::PrintStringVector(const char* s, const std::vector<std::pair<cmStdString, bool> >& v) const +{ + std::cout << s << ": ( \n"; + for(std::vector<std::pair<cmStdString, bool> >::const_iterator i = v.begin(); + i != v.end(); ++i) + { + std::cout << i->first.c_str() << " " << i->second; + } + std::cout << " )\n"; +} + // call print on all the classes in the makefile void cmMakefile::Print() const @@ -824,13 +835,14 @@ void cmMakefile::AddLinkDirectory(const char* dir) } } -void cmMakefile::AddSubDirectory(const char* sub) +void cmMakefile::AddSubDirectory(const char* sub, bool topLevel) { + std::pair<cmStdString, bool> p(sub, topLevel); // make sure it isn't already there if (std::find(m_SubDirectories.begin(), - m_SubDirectories.end(), sub) == m_SubDirectories.end()) + m_SubDirectories.end(), p) == m_SubDirectories.end()) { - m_SubDirectories.push_back(sub); + m_SubDirectories.push_back(p); } } |