From e83cc94dcd250e90143450bc916353b449043081 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 19 Sep 2012 18:45:01 +0200 Subject: 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. --- Source/cmQtAutomoc.cxx | 5 +++-- 1 file 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 includeDirs = target->GetIncludeDirectories(); - localGen->GetIncludeDirectories(includeDirs, target, "CXX"); + std::vector includeDirs; + cmGeneratorTarget gtgt(target); + localGen->GetIncludeDirectories(includeDirs, >gt, "CXX"); std::string _moc_incs = ""; const char* sep = ""; for(std::vector::const_iterator incDirIt = includeDirs.begin(); -- cgit v0.12