summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-07-07 18:02:22 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-07-07 18:02:22 (GMT)
commitc0ad998619efb17a314f189874eae359f602f236 (patch)
tree780212325ed067c5584a7bec8765c2a2d0466a2d /Source/cmExtraCodeBlocksGenerator.cxx
parent2247aca9cf6f9ade027be4b9558d1211647c6c3a (diff)
downloadCMake-c0ad998619efb17a314f189874eae359f602f236.zip
CMake-c0ad998619efb17a314f189874eae359f602f236.tar.gz
CMake-c0ad998619efb17a314f189874eae359f602f236.tar.bz2
ENH: get the build type specific location
Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 44d94a0..683564f 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -558,7 +558,8 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
if (target!=0)
{
int cbTargetType = this->GetCBTargetType(target);
- fout<<" <Option output=\"" << target->GetLocation(0)
+ const char* buildType = makefile->GetDefinition("CMAKE_BUILD_TYPE");
+ fout<<" <Option output=\"" << target->GetLocation(buildType)
<< "\" prefix_auto=\"0\" extension_auto=\"0\" />\n"
" <Option working_dir=\""
<< makefile->GetStartOutputDirectory() << "\" />\n"