Commit e4048118 authored by Bill Hoffman's avatar Bill Hoffman

BUG: fix crash with empty properties

parent 97b2bc3d
......@@ -2915,7 +2915,10 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
if ( propname == "INCLUDE_DIRECTORIES" )
{
std::vector<std::string> varArgsExpanded;
cmSystemTools::ExpandListArgument(value, varArgsExpanded);
if(value)
{
cmSystemTools::ExpandListArgument(value, varArgsExpanded);
}
this->SetIncludeDirectories(varArgsExpanded);
return;
}
......@@ -2923,7 +2926,10 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
if ( propname == "LINK_DIRECTORIES" )
{
std::vector<std::string> varArgsExpanded;
cmSystemTools::ExpandListArgument(value, varArgsExpanded);
if(value)
{
cmSystemTools::ExpandListArgument(value, varArgsExpanded);
}
this->SetLinkDirectories(varArgsExpanded);
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment