summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-19 20:36:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-19 20:36:14 (GMT)
commite6ef33f598f7ff74f7b6d7c60f98f883937c385a (patch)
tree860d6cfcf80922a545e02dc8e8b3e89076bbf137 /Source/cmMakefileExecutableTargetGenerator.cxx
parentf2e2f23392816ba826ebdd0e91851fc0e1aeaed1 (diff)
downloadCMake-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.cxx18
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();