Browse Source

ENH: get the build type specific location

Alex
Alexander Neundorf 16 years ago
parent
commit
c0ad998619
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/cmExtraCodeBlocksGenerator.cxx

+ 2 - 1
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"