mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 11:10:06 -05:00
cmPropertyMap: Require a non-empty name parameter.
The cmGetPropertyCommand already checks for this.
This commit is contained in:
@@ -84,7 +84,11 @@ bool cmGetDirectoryPropertyCommand
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *prop = dir->GetProperty(*i);
|
||||
const char *prop = 0;
|
||||
if (!i->empty())
|
||||
{
|
||||
prop = dir->GetProperty(*i);
|
||||
}
|
||||
if (prop)
|
||||
{
|
||||
this->Makefile->AddDefinition(variable, prop);
|
||||
|
||||
Reference in New Issue
Block a user