diff options
author | Brad King <brad.king@kitware.com> | 2008-01-29 20:07:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-01-29 20:07:33 (GMT) |
commit | ffac622a858cca4dc661caa896d961da666430cc (patch) | |
tree | 3c52af43de45021dbfc5afc7f64f3ce17701a78f /Source/cmLocalVisualStudio7Generator.cxx | |
parent | bb52f45ebb6b1c80f8f7b8e2b841202118ed9d06 (diff) | |
download | CMake-ffac622a858cca4dc661caa896d961da666430cc.zip CMake-ffac622a858cca4dc661caa896d961da666430cc.tar.gz CMake-ffac622a858cca4dc661caa896d961da666430cc.tar.bz2 |
ENH: Add cmTarget::GetLinkInformation method to allow several places in the generators to share link information while only computing it once per configuration for a target. Use it to simplify the chrpath feature.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index b368f7c..5922884 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -762,11 +762,12 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout, targetNameImport, targetNamePDB, configName); // Compute the link library and directory information. - cmComputeLinkInformation cli(&target, configName); - if(!cli.Compute()) + cmComputeLinkInformation* pcli = target.GetLinkInformation(configName); + if(!pcli) { return; } + cmComputeLinkInformation& cli = *pcli; const char* linkLanguage = cli.GetLinkLanguage(); // Compute the variable name to lookup standard libraries for this @@ -831,11 +832,12 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout, targetNameImport, targetNamePDB, configName); // Compute the link library and directory information. - cmComputeLinkInformation cli(&target, configName); - if(!cli.Compute()) + cmComputeLinkInformation* pcli = target.GetLinkInformation(configName); + if(!pcli) { return; } + cmComputeLinkInformation& cli = *pcli; const char* linkLanguage = cli.GetLinkLanguage(); // Compute the variable name to lookup standard libraries for this |