From ab7d51581c6278f3c9792e3e5bb277dc19a2d205 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 4 Apr 2005 16:43:44 -0400 Subject: ENH: get directory property should return an empty variable if it is not set, not just have an error --- Source/cmGetDirectoryPropertyCommand.cxx | 5 ++--- 1 file 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()); -- cgit v0.12