summaryrefslogtreecommitdiffstats
path: root/Source/cmGetDirectoryPropertyCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-04-04 20:43:44 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-04-04 20:43:44 (GMT)
commitab7d51581c6278f3c9792e3e5bb277dc19a2d205 (patch)
tree407444484d15a7ccceb846da801c6b94dc8de681 /Source/cmGetDirectoryPropertyCommand.cxx
parent0e62c76f5b6784b9b20f75234377ab39cb4e585f (diff)
downloadCMake-ab7d51581c6278f3c9792e3e5bb277dc19a2d205.zip
CMake-ab7d51581c6278f3c9792e3e5bb277dc19a2d205.tar.gz
CMake-ab7d51581c6278f3c9792e3e5bb277dc19a2d205.tar.bz2
ENH: get directory property should return an empty variable if it is not set, not just have an error
Diffstat (limited to 'Source/cmGetDirectoryPropertyCommand.cxx')
-rw-r--r--Source/cmGetDirectoryPropertyCommand.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGetDirectoryPropertyCommand.cxx b/Source/cmGetDirectoryPropertyCommand.cxx
index 81d249b..04c0dbb 100644
--- a/Source/cmGetDirectoryPropertyCommand.cxx
+++ b/Source/cmGetDirectoryPropertyCommand.cxx
@@ -101,9 +101,8 @@ bool cmGetDirectoryPropertyCommand::InitialPass(
m_Makefile->AddDefinition(variable.c_str(), prop);
return true;
}
- std::string emsg = "Unknown directory property: " + args[1];
- this->SetError(emsg.c_str());
- return false;
+ m_Makefile->AddDefinition(variable.c_str(), "");
+ return true;
}
m_Makefile->AddDefinition(variable.c_str(), output.c_str());