diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-19 20:36:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-19 20:36:14 (GMT) |
commit | e6ef33f598f7ff74f7b6d7c60f98f883937c385a (patch) | |
tree | 860d6cfcf80922a545e02dc8e8b3e89076bbf137 /Source/cmMakefileTargetGenerator.cxx | |
parent | f2e2f23392816ba826ebdd0e91851fc0e1aeaed1 (diff) | |
download | CMake-e6ef33f598f7ff74f7b6d7c60f98f883937c385a.zip CMake-e6ef33f598f7ff74f7b6d7c60f98f883937c385a.tar.gz CMake-e6ef33f598f7ff74f7b6d7c60f98f883937c385a.tar.bz2 |
ENH: name pdb files for visual studio make based builds
Diffstat (limited to 'Source/cmMakefileTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileTargetGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmMakefileTargetGenerator.cxx b/Source/cmMakefileTargetGenerator.cxx index aca3d29..f114b73 100644 --- a/Source/cmMakefileTargetGenerator.cxx +++ b/Source/cmMakefileTargetGenerator.cxx @@ -385,8 +385,16 @@ cmMakefileTargetGenerator std::string compileRule = this->Makefile->GetRequiredDefinition(compileRuleVar.c_str()); cmSystemTools::ExpandListArgument(compileRule, commands); + + std::string outpath = this->Makefile->GetStartOutputDirectory(); + outpath += "/"; + outpath += this->Target->GetName(); + outpath += ".pdb"; + outpath = this->Convert(outpath.c_str(), cmLocalGenerator::FULL, + cmLocalGenerator::MAKEFILE); cmLocalGenerator::RuleVariables vars; vars.Language = lang; + vars.TargetPDB = outpath.c_str(); vars.Source = sourceFile.c_str(); vars.Object = relativeObj.c_str(); std::string objdir = this->LocalGenerator->GetHomeRelativeOutputPath(); |