diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 20:09:20 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-13 14:27:23 (GMT) |
commit | cd43433de56ab31269a076fb2b2ace8babaa107d (patch) | |
tree | 3cfc978af258b7b0fc0b046b3d99be1b4cd01254 /Source/cmGlobalVisualStudioGenerator.cxx | |
parent | d5b2e33be2119ad12744ed62920a8f8d9b6d705d (diff) | |
download | CMake-cd43433de56ab31269a076fb2b2ace8babaa107d.zip CMake-cd43433de56ab31269a076fb2b2ace8babaa107d.tar.gz CMake-cd43433de56ab31269a076fb2b2ace8babaa107d.tar.bz2 |
cmGlobalGenerator: Extract a ComputeTargetObjectDirectory interface.
Make it public for future external calls.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudioGenerator.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx index 69c893c..f3cba5a 100644 --- a/Source/cmGlobalVisualStudioGenerator.cxx +++ b/Source/cmGlobalVisualStudioGenerator.cxx @@ -159,10 +159,15 @@ cmGlobalVisualStudioGenerator } gt->AddObject(sf, objectName); } +} +//---------------------------------------------------------------------------- +void cmGlobalVisualStudioGenerator +::ComputeTargetObjectDirectory(cmGeneratorTarget* gt) const +{ std::string dir = gt->Makefile->GetCurrentOutputDirectory(); dir += "/"; - std::string tgtDir = lg->GetTargetDirectory(*gt->Target); + std::string tgtDir = gt->LocalGenerator->GetTargetDirectory(*gt->Target); if(!tgtDir.empty()) { dir += tgtDir; |