summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutomoc.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-09-19 16:45:01 (GMT)
committerStephen Kelly <steveire@gmail.com>2012-09-19 16:45:01 (GMT)
commite83cc94dcd250e90143450bc916353b449043081 (patch)
treeb3f8af0c75f684759d44b46851f30c4648a7e3bf /Source/cmQtAutomoc.cxx
parent9d8e59db71833dce7133bac48e461e388223eb51 (diff)
downloadCMake-e83cc94dcd250e90143450bc916353b449043081.zip
CMake-e83cc94dcd250e90143450bc916353b449043081.tar.gz
CMake-e83cc94dcd250e90143450bc916353b449043081.tar.bz2
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.
Diffstat (limited to 'Source/cmQtAutomoc.cxx')
-rw-r--r--Source/cmQtAutomoc.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index 386a3bf..68f1046 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/Source/cmQtAutomoc.cxx
@@ -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, &gtgt, "CXX");
std::string _moc_incs = "";
const char* sep = "";
for(std::vector<std::string>::const_iterator incDirIt = includeDirs.begin();