mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 22:30:07 -05:00
ENH: get directory property should return an empty variable if it is not set, not just have an error
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user