diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-08-04 17:19:51 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-05 16:20:50 (GMT) |
commit | b3f0e35308993de825f00ec18fc6559e6609c9b0 (patch) | |
tree | 36a3fd55b874ccebdcf450cbad83b15750b52226 /Source/cmGeneratorTarget.cxx | |
parent | 34c437411dad89c671261269f2067129584a4259 (diff) | |
download | CMake-b3f0e35308993de825f00ec18fc6559e6609c9b0.zip CMake-b3f0e35308993de825f00ec18fc6559e6609c9b0.tar.gz CMake-b3f0e35308993de825f00ec18fc6559e6609c9b0.tar.bz2 |
cmGeneratorTarget: Move GetCompilePDBDirectory from cmTarget.
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index aac941e..c6f248c 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -743,7 +743,7 @@ cmGeneratorTarget::GetCompilePDBName(const std::string& config) const std::string cmGeneratorTarget::GetCompilePDBPath(const std::string& config) const { - std::string dir = this->Target->GetCompilePDBDirectory(config); + std::string dir = this->GetCompilePDBDirectory(config); std::string name = this->GetCompilePDBName(config); if(dir.empty() && !name.empty()) { @@ -1824,6 +1824,16 @@ void cmGeneratorTarget::TraceDependencies() tracer.Trace(); } +std::string +cmGeneratorTarget::GetCompilePDBDirectory(const std::string& config) const +{ + if(cmTarget::CompileInfo const* info = this->Target->GetCompileInfo(config)) + { + return info->CompilePdbDir; + } + return ""; +} + //---------------------------------------------------------------------------- void cmGeneratorTarget::GetAppleArchs(const std::string& config, std::vector<std::string>& archVec) const |