summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-23 16:26:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-24 07:19:56 (GMT)
commit94fd5a5af87adafbbf7f47d6d083b53c6bd3e941 (patch)
treeb3ce210f7c8da28b4a5d6c8de358496a21e410ea /Source/cmLocalVisualStudioGenerator.cxx
parentce9e9a92cf773280de55ef6dcbec9fc2524f7b2e (diff)
downloadCMake-94fd5a5af87adafbbf7f47d6d083b53c6bd3e941.zip
CMake-94fd5a5af87adafbbf7f47d6d083b53c6bd3e941.tar.gz
CMake-94fd5a5af87adafbbf7f47d6d083b53c6bd3e941.tar.bz2
VS: Port ImplibDir to cmGeneratorTarget
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmLocalVisualStudioGenerator.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx
index 8516ce7..561f9a1 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/Source/cmLocalVisualStudioGenerator.cxx
@@ -80,7 +80,7 @@ void cmLocalVisualStudioGenerator::ComputeObjectFilenames(
//----------------------------------------------------------------------------
cmsys::auto_ptr<cmCustomCommand>
-cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmTarget& target,
+cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmGeneratorTarget* target,
const std::string& config,
bool isFortran)
{
@@ -89,13 +89,11 @@ cmLocalVisualStudioGenerator::MaybeCreateImplibDir(cmTarget& target,
// If an executable exports symbols then VS wants to create an
// import library but forgets to create the output directory.
// The Intel Fortran plugin always forgets to the directory.
- if(target.GetType() != cmState::EXECUTABLE &&
- !(isFortran && target.GetType() == cmState::SHARED_LIBRARY))
+ if(target->GetType() != cmState::EXECUTABLE &&
+ !(isFortran && target->GetType() == cmState::SHARED_LIBRARY))
{ return pcc; }
- cmGeneratorTarget* gt =
- this->GetGlobalGenerator()->GetGeneratorTarget(&target);
- std::string outDir = gt->GetDirectory(config, false);
- std::string impDir = gt->GetDirectory(config, true);
+ std::string outDir = target->GetDirectory(config, false);
+ std::string impDir = target->GetDirectory(config, true);
if(impDir == outDir) { return pcc; }
// Add a pre-build event to create the directory.