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);
|
m_Makefile->AddDefinition(variable.c_str(), prop);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
std::string emsg = "Unknown directory property: " + args[1];
|
m_Makefile->AddDefinition(variable.c_str(), "");
|
||||||
this->SetError(emsg.c_str());
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
m_Makefile->AddDefinition(variable.c_str(), output.c_str());
|
m_Makefile->AddDefinition(variable.c_str(), output.c_str());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user