|
@@ -38,7 +38,11 @@ bool cmGetSourceFilePropertyCommand
|
|
|
this->Makefile->AddDefinition(var, sf->GetLanguage().c_str());
|
|
this->Makefile->AddDefinition(var, sf->GetLanguage().c_str());
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
- const char *prop = sf->GetPropertyForUser(args[2]);
|
|
|
|
|
|
|
+ const char *prop = 0;
|
|
|
|
|
+ if (!args[2].empty())
|
|
|
|
|
+ {
|
|
|
|
|
+ prop = sf->GetPropertyForUser(args[2]);
|
|
|
|
|
+ }
|
|
|
if (prop)
|
|
if (prop)
|
|
|
{
|
|
{
|
|
|
this->Makefile->AddDefinition(var, prop);
|
|
this->Makefile->AddDefinition(var, prop);
|