diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-25 19:28:36 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-27 19:58:50 (GMT) |
commit | c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e (patch) | |
tree | 6628b5e991d2d35f1776f12b6ae427e2bd222792 /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | 5b60eaf619baf4dfa2bc1a3f1109ff742a04f532 (diff) | |
download | CMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.zip CMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.tar.gz CMake-c7a8e74b8c7ade9efb68b8bd36fd6d741f2dba7e.tar.bz2 |
Always access target location from a cmGeneratorTarget instance.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index a31e832..6d145a2 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 |