summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx
index 23b0008..81d249b 100644
--- a/Source/cmGetDirectoryPropertyCommand.cxx
+++ b/Source/cmGetDirectoryPropertyCommand.cxx
@@ -95,6 +95,12 @@ bool cmGetDirectoryPropertyCommand::InitialPass(
}
else
{
+ const char *prop = m_Makefile->GetProperty(args[1].c_str());
+ if (prop)
+ {
+ m_Makefile->AddDefinition(variable.c_str(), prop);
+ return true;
+ }
std::string emsg = "Unknown directory property: " + args[1];
this->SetError(emsg.c_str());
return false;