diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 20:43:44 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2005-04-04 20:43:44 (GMT) |
commit | ab7d51581c6278f3c9792e3e5bb277dc19a2d205 (patch) | |
tree | 407444484d15a7ccceb846da801c6b94dc8de681 /Source | |
parent | 0e62c76f5b6784b9b20f75234377ab39cb4e585f (diff) | |
download | CMake-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')
-rw-r--r-- | Source/cmGetDirectoryPropertyCommand.cxx | 5 |
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()); |