ENH: fix warning, and remove debug code

This commit is contained in:
Bill Hoffman 2006-04-03 15:59:43 -04:00
parent 3c8e899102
commit c98d15e8a3
1 changed files with 0 additions and 8 deletions

View File

@ -975,20 +975,12 @@ bool cmFileCommand::HandleSystemPathCommand(std::vector<std::string>
const& args) const& args)
{ {
std::vector<std::string>::const_iterator i = args.begin(); 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) if(args.size() != 3)
{ {
this->SetError("FILE(SYSTEM_PATH ENV result) must be called with " this->SetError("FILE(SYSTEM_PATH ENV result) must be called with "
"only three arguments."); "only three arguments.");
return false; return false;
} }
i++; // Get rid of subcommand i++; // Get rid of subcommand
std::vector<std::string> path; std::vector<std::string> path;
cmSystemTools::GetPath(path, i->c_str()); cmSystemTools::GetPath(path, i->c_str());