summaryrefslogtreecommitdiff
path: root/Source/cmGetDirectoryPropertyCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-06-08 22:03:07 +0200
committerStephen Kelly <steveire@gmail.com>2015-06-08 22:18:42 +0200
commitfe603c7dfb8a3d0dfc892b46f9df0b4c32a892f9 (patch)
tree7e252193e64fe12b3fe4e11c881cbbdb55f02d91 /Source/cmGetDirectoryPropertyCommand.cxx
parent8fc53c3ce89e76a4e5cf1968307c513041e9a7b7 (diff)
downloadcmake-fe603c7dfb8a3d0dfc892b46f9df0b4c32a892f9.tar.gz
cmGetDirectoryPropertyCommand: Move variable to the point of use.
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx
index bb1801ca06..f60eba707a 100644
--- a/Source/cmGetDirectoryPropertyCommand.cxx
+++ b/Source/cmGetDirectoryPropertyCommand.cxx
@@ -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;
}