summaryrefslogtreecommitdiff
path: root/Source/cmSubdirCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmSubdirCommand.cxx')
-rw-r--r--Source/cmSubdirCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmSubdirCommand.cxx b/Source/cmSubdirCommand.cxx
index 7fcf81417e..3bcd1a0e68 100644
--- a/Source/cmSubdirCommand.cxx
+++ b/Source/cmSubdirCommand.cxx
@@ -25,15 +25,21 @@ bool cmSubdirCommand::InitialPass(std::vector<std::string> const& args)
return false;
}
bool res = true;
+ bool intoplevel = true;
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
+ if(*i == "EXCLUDE_FROM_ALL")
+ {
+ intoplevel = false;
+ continue;
+ }
std::string directory = std::string(m_Makefile->GetCurrentDirectory()) +
"/" + i->c_str();
if ( cmSystemTools::FileIsDirectory(directory.c_str()) )
{
- m_Makefile->AddSubDirectory(i->c_str());
+ m_Makefile->AddSubDirectory(i->c_str(), intoplevel);
}
else
{