summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileLibraryTargetGenerator.cxx
diff options
context:
space:
mode:
authorYuchen Deng <loaden@gmail.com>2012-09-25 01:30:42 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 19:23:35 (GMT)
commit3f60dbf1484575f4c28a15c89e1af071648c8f2d (patch)
tree2ff89c5574c9515a4f1a61d210dfbcc7b020af56 /Source/cmMakefileLibraryTargetGenerator.cxx
parentd550801a3df96b991caf918435025aa233130bb4 (diff)
downloadCMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.zip
CMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.tar.gz
CMake-3f60dbf1484575f4c28a15c89e1af071648c8f2d.tar.bz2
Add PDB_OUTPUT_DIRECTORY and PDB_NAME target properties (#10830)
This enables changing the name and output folder of the debug symbol files produced by MS compilers. Inspired-by: Thomas Bernard <thomas.bernard@ipetronik.com>
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileLibraryTargetGenerator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx
index 577e5fd..95b71f2 100644
--- a/Source/cmMakefileLibraryTargetGenerator.cxx
+++ b/Source/cmMakefileLibraryTargetGenerator.cxx
@@ -328,8 +328,12 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
}
}
+ std::string pdbOutputPath = this->Target->GetPDBDirectory();
+ cmSystemTools::MakeDirectory(pdbOutputPath.c_str());
+ pdbOutputPath += "/";
+
std::string targetFullPath = outpath + targetName;
- std::string targetFullPathPDB = outpath + targetNamePDB;
+ std::string targetFullPathPDB = pdbOutputPath + targetNamePDB;
std::string targetFullPathSO = outpath + targetNameSO;
std::string targetFullPathReal = outpath + targetNameReal;
std::string targetFullPathImport = outpathImp + targetNameImport;