mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-18 01:31:04 -05:00
cmGetDirectoryPropertyCommand: Move variable to the point of use.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user