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/cmMakefileExecutableTargetGenerator.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/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index 37c664c..d35acfd 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -168,17 +168,22 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) } std::string targetFullPath = outpath + targetName; std::string targetFullPathReal = outpath + targetNameReal; - + std::string targetFullPathPDB = outpath + this->Target->GetName(); + targetFullPathPDB += ".pdb"; + std::string targetOutPathPDB = + this->Convert(targetFullPathPDB.c_str(), + cmLocalGenerator::FULL, + cmLocalGenerator::MAKEFILE); // Convert to the output path to use in constructing commands. std::string targetOutPath = this->Convert(targetFullPath.c_str(), - cmLocalGenerator::START_OUTPUT, - cmLocalGenerator::MAKEFILE); + cmLocalGenerator::START_OUTPUT, + cmLocalGenerator::MAKEFILE); std::string targetOutPathReal = this->Convert(targetFullPathReal.c_str(), - cmLocalGenerator::START_OUTPUT, - cmLocalGenerator::MAKEFILE); - + cmLocalGenerator::START_OUTPUT, + cmLocalGenerator::MAKEFILE); + // Get the language to use for linking this executable. const char* linkLanguage = this->Target->GetLinkerLanguage(this->GlobalGenerator); @@ -328,6 +333,7 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) vars.Language = linkLanguage; vars.Objects = buildObjs.c_str(); vars.Target = targetOutPathReal.c_str(); + vars.TargetPDB = targetOutPathPDB.c_str(); std::string linkString = linklibs.str(); vars.LinkLibraries = linkString.c_str(); vars.Flags = flags.c_str(); |