Use the cmGeneratorTarget for the include directories API.
Also, no need to get the include directories from the target beforehand. The local generator does that for us anyway.
This commit is contained in:
parent
9d8e59db71
commit
e83cc94dcd
|
@ -194,8 +194,9 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> includeDirs = target->GetIncludeDirectories();
|
||||
localGen->GetIncludeDirectories(includeDirs, target, "CXX");
|
||||
std::vector<std::string> includeDirs;
|
||||
cmGeneratorTarget gtgt(target);
|
||||
localGen->GetIncludeDirectories(includeDirs, >gt, "CXX");
|
||||
std::string _moc_incs = "";
|
||||
const char* sep = "";
|
||||
for(std::vector<std::string>::const_iterator incDirIt = includeDirs.begin();
|
||||
|
|
Loading…
Reference in New Issue