diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 566987236..132154ccc 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2797,10 +2797,10 @@ std::vector cmTarget::GetIncludeDirectories(const char *config) if(uniqueIncludes.insert(inc).second) { - includes.push_back(*li); + includes.push_back(inc); if (debugIncludes) { - usedIncludes += " * " + *li + "\n"; + usedIncludes += " * " + inc + "\n"; } } }