summaryrefslogtreecommitdiff
path: root/Source/cmExportLibraryDependenciesCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-14 14:19:32 -0400
committerBrad King <brad.king@kitware.com>2014-07-14 14:29:26 -0400
commit80cb12bb8bc14eb3e56f344d03254777351e5c74 (patch)
tree45cf22e521c22d1e3b36990ef01a969200b695da /Source/cmExportLibraryDependenciesCommand.cxx
parentc72642f927e65e66f602406380349f928a961e77 (diff)
downloadcmake-80cb12bb8bc14eb3e56f344d03254777351e5c74.tar.gz
export_library_dependencies: Use original link libraries internally
This command was using the cmTarget::GetLinkLibraries method with a comment explaining how execution order gives it the dependencies before analysis. Just use cmTarget::GetOriginalLinkLibraries instead.
Diffstat (limited to 'Source/cmExportLibraryDependenciesCommand.cxx')
-rw-r--r--Source/cmExportLibraryDependenciesCommand.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmExportLibraryDependenciesCommand.cxx b/Source/cmExportLibraryDependenciesCommand.cxx
index 688d2ebf89..cb150a79ce 100644
--- a/Source/cmExportLibraryDependenciesCommand.cxx
+++ b/Source/cmExportLibraryDependenciesCommand.cxx
@@ -108,14 +108,12 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
std::string targetEntry = target.GetName();
targetEntry += "_LIB_DEPENDS";
- // Construct the dependency variable value. It is safe to use
- // the target GetLinkLibraries method here because this code is
- // called at the end of configure but before generate so library
- // dependencies have yet to be analyzed. Therefore the value
- // will be the direct link dependencies.
+ // Construct the dependency variable value with the direct link
+ // dependencies.
std::string valueOld;
std::string valueNew;
- cmTarget::LinkLibraryVectorType const& libs = target.GetLinkLibraries();
+ cmTarget::LinkLibraryVectorType const& libs =
+ target.GetOriginalLinkLibraries();
for(cmTarget::LinkLibraryVectorType::const_iterator li = libs.begin();
li != libs.end(); ++li)
{