Commit fe603c7d authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmGetDirectoryPropertyCommand: Move variable to the point of use.

parent 8fc53c3c
......@@ -26,7 +26,6 @@ bool cmGetDirectoryPropertyCommand
std::vector<std::string>::const_iterator i = args.begin();
std::string variable = *i;
++i;
std::string output = "";
// get the directory argument if there is one
cmMakefile *dir = this->Makefile;
......@@ -79,7 +78,7 @@ bool cmGetDirectoryPropertyCommand
"providing the name of the variable to get.");
return false;
}
output = dir->GetSafeDefinition(*i);
std::string output = dir->GetSafeDefinition(*i);
this->Makefile->AddDefinition(variable, output.c_str());
return true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment