mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-17 15:32:10 +08:00
ENH: removed the PREORDER option from the AddSubDirectory command
This commit is contained in:
@@ -30,7 +30,6 @@ bool cmAddSubDirectoryCommand::InitialPass(std::vector<std::string> const& args)
|
||||
std::string srcArg;
|
||||
|
||||
bool intoplevel = true;
|
||||
bool preorder = false;
|
||||
|
||||
// process the rest of the arguments looking for optional args
|
||||
std::vector<std::string>::const_iterator i = args.begin();
|
||||
@@ -42,11 +41,6 @@ bool cmAddSubDirectoryCommand::InitialPass(std::vector<std::string> const& args)
|
||||
intoplevel = false;
|
||||
continue;
|
||||
}
|
||||
else if(*i == "PREORDER")
|
||||
{
|
||||
preorder = true;
|
||||
continue;
|
||||
}
|
||||
else if (!srcArg.size())
|
||||
{
|
||||
srcArg = *i;
|
||||
@@ -89,7 +83,7 @@ bool cmAddSubDirectoryCommand::InitialPass(std::vector<std::string> const& args)
|
||||
}
|
||||
|
||||
m_Makefile->AddSubDirectory(srcPath.c_str(), binPath.c_str(),
|
||||
intoplevel, preorder, true);
|
||||
intoplevel, false, true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user