ENH: get directory property should return an empty variable if it is not set, not just have an error

This commit is contained in:
Bill Hoffman 2005-04-04 16:43:44 -04:00
parent 0e62c76f5b
commit ab7d51581c
1 changed files with 2 additions and 3 deletions

View File

@ -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());