From bcee21ceb733d7e6d12d85346d8e683399cc4fc4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 21 Oct 2015 21:38:24 +0200 Subject: [PATCH] C::B: Port API to cmGeneratorTarget. --- Source/cmExtraCodeBlocksGenerator.cxx | 12 ++++++------ Source/cmExtraCodeBlocksGenerator.h | 5 ++--- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index a71b1cb68..597c9d80f 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -17,7 +17,6 @@ #include "cmake.h" #include "cmSourceFile.h" #include "cmGeneratedFileStream.h" -#include "cmTarget.h" #include "cmSystemTools.h" #include "cmXMLSafe.h" @@ -441,7 +440,7 @@ void cmExtraCodeBlocksGenerator } CbpUnit &cbpUnit = allFiles[fullPath]; - cbpUnit.Targets.push_back((*ti)->Target); + cbpUnit.Targets.push_back(*ti); } } default: // intended fallthrough @@ -501,8 +500,9 @@ void cmExtraCodeBlocksGenerator fout<<" \n"; - for(std::vector::const_iterator ti = unit.Targets.begin(); - ti != unit.Targets.end(); ++ti) + for(std::vector::const_iterator ti = + unit.Targets.begin(); + ti != unit.Targets.end(); ++ti) { std::string const& targetName = (*ti)->GetName(); fout<<"