diff options
author | Brad King <brad.king@kitware.com> | 2007-02-01 21:54:49 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-02-01 21:54:49 (GMT) |
commit | 4bc0fd0941a97a86b2925562b717597f5ed0a2f4 (patch) | |
tree | 426e9f6ffe79babf1373cc62394ee8282825bde5 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | ed7de15676aa3e1731a16d263ce5113cbb2fe4fc (diff) | |
download | CMake-4bc0fd0941a97a86b2925562b717597f5ed0a2f4.zip CMake-4bc0fd0941a97a86b2925562b717597f5ed0a2f4.tar.gz CMake-4bc0fd0941a97a86b2925562b717597f5ed0a2f4.tar.bz2 |
ENH: Added cmTarget::GetPDBName method to simplify computation of .pdb file name for a target.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index da579db..f59f3da 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -638,29 +638,17 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, { if(target.GetType() == cmTarget::EXECUTABLE) { - std::string targetName; - std::string targetNameFull; - std::string targetNamePDB; - target.GetExecutableNames(targetName, targetNameFull, - targetNamePDB, configName); fout << "\t\t\t\tProgramDataBaseFileName=\"" << this->ExecutableOutputPath - << "$(OutDir)/" << targetNamePDB << "\"\n"; + << "$(OutDir)/" << target.GetPDBName(configName) << "\"\n"; } else if(target.GetType() == cmTarget::STATIC_LIBRARY || target.GetType() == cmTarget::SHARED_LIBRARY || target.GetType() == cmTarget::MODULE_LIBRARY) { - std::string targetName; - std::string targetNameSO; - std::string targetNameFull; - std::string targetNameImport; - std::string targetNamePDB; - target.GetLibraryNames(targetName, targetNameSO, targetNameFull, - targetNameImport, targetNamePDB, configName); fout << "\t\t\t\tProgramDataBaseFileName=\"" << this->LibraryOutputPath - << "$(OutDir)/" << targetNamePDB << "\"\n"; + << "$(OutDir)/" << target.GetPDBName(configName) << "\"\n"; } } fout << "/>\n"; // end of <Tool Name=VCCLCompilerTool |