summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmMakefile.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index c9a9238..92d5938 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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;
}