summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-04-10 16:12:56 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-04-10 16:12:56 (GMT)
commit5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0 (patch)
tree10461d8ab401216ed1fe60ebc3823422a4af8175 /Source/cmMakefile.cxx
parenta5b39fd3c68b61a33957b03807db14b02cdea4c4 (diff)
downloadCMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.zip
CMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.tar.gz
CMake-5a5e0fa9d35ea49ef9d31993ab415fc0e390e8b0.tar.bz2
Fix clearing of the INCLUDE_DIRECTORIES DIRECTORY property.
This was broken by commit 18a3195a (Keep track of INCLUDE_DIRECTORIES as a vector of structs., 2012-11-19).
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 25ccbc7..47a6d2e 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3458,6 +3458,10 @@ void cmMakefile::SetProperty(const char* prop, const char* value)
if (propname == "INCLUDE_DIRECTORIES")
{
this->IncludeDirectoriesEntries.clear();
+ if (!value)
+ {
+ return;
+ }
cmListFileBacktrace lfbt;
this->GetBacktrace(lfbt);
this->IncludeDirectoriesEntries.push_back(