diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-19 16:45:01 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-19 16:45:01 (GMT) |
commit | e83cc94dcd250e90143450bc916353b449043081 (patch) | |
tree | b3f8af0c75f684759d44b46851f30c4648a7e3bf | |
parent | 9d8e59db71833dce7133bac48e461e388223eb51 (diff) | |
download | CMake-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.
-rw-r--r-- | Source/cmQtAutomoc.cxx | 5 |
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, >gt, "CXX"); std::string _moc_incs = ""; const char* sep = ""; for(std::vector<std::string>::const_iterator incDirIt = includeDirs.begin(); |