diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-05 16:39:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-08 23:04:37 (GMT) |
commit | 50dc9b44404f4f31aa24cf17247f10539c3807b2 (patch) | |
tree | 094bd641833f511b4659a7372775fcf6f9f7d501 /Source/cmGeneratorTarget.cxx | |
parent | 8b0168863ed121c7d9f05e3282e2f59490ff6c42 (diff) | |
download | CMake-50dc9b44404f4f31aa24cf17247f10539c3807b2.zip CMake-50dc9b44404f4f31aa24cf17247f10539c3807b2.tar.gz CMake-50dc9b44404f4f31aa24cf17247f10539c3807b2.tar.bz2 |
cmGeneratorTarget: Move GetPDBDirectory from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index b8a87a2..a2423cc 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -1130,7 +1130,7 @@ cmGeneratorTarget::GetCompilePDBPath(const std::string& config) const std::string name = this->GetCompilePDBName(config); if(dir.empty() && !name.empty()) { - dir = this->Target->GetPDBDirectory(config); + dir = this->GetPDBDirectory(config); } if(!dir.empty()) { @@ -4995,3 +4995,15 @@ void cmGeneratorTarget::ComputeLinkImplementationLibraries( } } } + +//---------------------------------------------------------------------------- +std::string +cmGeneratorTarget::GetPDBDirectory(const std::string& config) const +{ + if(cmTarget::OutputInfo const* info = this->Target->GetOutputInfo(config)) + { + // Return the directory in which the target will be built. + return info->PdbDir; + } + return ""; +} |