diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-09-15 21:54:01 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2012-09-19 13:30:57 (GMT) |
commit | 4f5384e75c6a00d110d3fa3f555a3f6a4f31bb46 (patch) | |
tree | 57a48f6e311086bd39520389d700bbb70d4b39d6 /Source/cmLocalGenerator.cxx | |
parent | 987e12e2f962b6e9ed9f15f8ff486512911b744e (diff) | |
download | CMake-4f5384e75c6a00d110d3fa3f555a3f6a4f31bb46.zip CMake-4f5384e75c6a00d110d3fa3f555a3f6a4f31bb46.tar.gz CMake-4f5384e75c6a00d110d3fa3f555a3f6a4f31bb46.tar.bz2 |
Move GetLinkInformation to cmGeneratorTarget
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6239557..24d9b91 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1656,7 +1656,8 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, bool relink) { const char* config = this->Makefile->GetDefinition("CMAKE_BUILD_TYPE"); - cmComputeLinkInformation* pcli = tgt.GetLinkInformation(config); + cmGeneratorTarget* gtgt = this->GlobalGenerator->GetGeneratorTarget(&tgt); + cmComputeLinkInformation* pcli = gtgt->GetLinkInformation(config); if(!pcli) { return; @@ -1677,7 +1678,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, std::string linkFlagsVar = "CMAKE_SHARED_LIBRARY_LINK_"; linkFlagsVar += linkLanguage; linkFlagsVar += "_FLAGS"; - if( tgt.GetType() == cmTarget::EXECUTABLE ) + if( gtgt->GetType() == cmTarget::EXECUTABLE ) { linkLibs = this->Makefile->GetSafeDefinition(linkFlagsVar.c_str()); linkLibs += " "; |