ENH: get directory property should return an empty variable if it is not set, not just have an error
This commit is contained in:
parent
0e62c76f5b
commit
ab7d51581c
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue