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/cmMakefileLibraryTargetGenerator.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/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 9140d31..fac4513 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -233,12 +233,16 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules outpath += "/"; } std::string targetFullPath = outpath + targetName; + std::string targetFullPathPDB = outpath + this->Target->GetName() + std::string(".pdb"); std::string targetFullPathSO = outpath + targetNameSO; std::string targetFullPathReal = outpath + targetNameReal; std::string targetFullPathImport = outpath + targetNameImport; // Construct the output path version of the names for use in command // arguments. + std::string targetOutPathPDB = + this->Convert(targetFullPathPDB.c_str(),cmLocalGenerator::FULL, + cmLocalGenerator::MAKEFILE); std::string targetOutPath = this->Convert(targetFullPath.c_str(),cmLocalGenerator::START_OUTPUT, cmLocalGenerator::MAKEFILE); @@ -402,6 +406,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules cleanObjs += variableName; cleanObjs += ")"; cmLocalGenerator::RuleVariables vars; + vars.TargetPDB = targetOutPathPDB.c_str(); vars.Language = linkLanguage; vars.Objects = buildObjs.c_str(); std::string objdir = "CMakeFiles/"; |