summaryrefslogtreecommitdiff
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-25 21:28:36 +0200
committerStephen Kelly <steveire@gmail.com>2015-07-27 21:58:50 +0200
commitc7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e (patch)
tree6628b5e991d2d35f1776f12b6ae427e2bd222792 /Source/cmExtraCodeBlocksGenerator.cxx
parent5b60eaf619baf4dfa2bc1a3f1109ff742a04f532 (diff)
downloadcmake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.tar.gz
Always access target location from a cmGeneratorTarget instance.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index a31e832428..6d145a2121 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -591,7 +591,9 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
}
else
{
- location = target->GetLocation(buildType);
+ cmGeneratorTarget* gt =
+ this->GlobalGenerator->GetGeneratorTarget(target);
+ location = gt->Target->GetLocation(buildType);
}
fout<<" <Option output=\"" << location