Bläddra i källkod

ENH: get the build type specific location

Alex
Alexander Neundorf 16 år sedan
förälder
incheckning
c0ad998619
1 ändrade filer med 2 tillägg och 1 borttagningar
  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"