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/cmTarget.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/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 11 |
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); |