ENH: make sure framework search order is correct

This commit is contained in:
Bill Hoffman
2006-03-30 11:55:19 -05:00
parent 7b3be313ee
commit 3cf3fc510f
3 changed files with 49 additions and 19 deletions

View File

@@ -943,12 +943,20 @@ bool cmFileCommand::HandleSystemPathCommand(std::vector<std::string>
const& args)
{
std::vector<std::string>::const_iterator i = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
std::cerr << "[" << *j << "]\n";
}
return true;
if(args.size() != 3)
{
this->SetError("FILE(SYSTEM_PATH ENV result) must be called with "
"only three arguments.");
return false;
}
i++; // Get rid of subcommand
std::vector<std::string> path;
cmSystemTools::GetPath(path, i->c_str());