ENH: get the build type specific location

Alex
This commit is contained in:
Alexander Neundorf 2009-07-07 14:02:22 -04:00
parent 2247aca9cf
commit c0ad998619
1 changed files with 2 additions and 1 deletions

View File

@ -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"