summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-02-01 21:54:49 (GMT)
committerBrad King <brad.king@kitware.com>2007-02-01 21:54:49 (GMT)
commit4bc0fd0941a97a86b2925562b717597f5ed0a2f4 (patch)
tree426e9f6ffe79babf1373cc62394ee8282825bde5 /Source/cmTarget.cxx
parented7de15676aa3e1731a16d263ce5113cbb2fe4fc (diff)
downloadCMake-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/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 1b5138b..5e2001a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1376,6 +1376,17 @@ const char* cmTarget::GetPrefixVariableInternal(TargetType type,
}
//----------------------------------------------------------------------------
+std::string cmTarget::GetPDBName(const char* config)
+{
+ std::string prefix;
+ std::string base;
+ std::string suffix;
+ this->GetFullNameInternal(this->GetType(), config, false,
+ prefix, base, suffix);
+ return prefix+base+".pdb";
+}
+
+//----------------------------------------------------------------------------
std::string cmTarget::GetFullName(const char* config, bool implib)
{
return this->GetFullNameInternal(this->GetType(), config, implib);