diff options
author | Brad King <brad.king@kitware.com> | 2014-06-16 18:08:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-23 13:22:08 (GMT) |
commit | 281eb3d8a6a4983a33d5a8d70a0e21ebb3bd115f (patch) | |
tree | 2c488918b93a60a99264964921e9888b4e7b1a32 | |
parent | d912220eaaa92f3e8524c33e1684ebbf84eba521 (diff) | |
download | CMake-281eb3d8a6a4983a33d5a8d70a0e21ebb3bd115f.zip CMake-281eb3d8a6a4983a33d5a8d70a0e21ebb3bd115f.tar.gz CMake-281eb3d8a6a4983a33d5a8d70a0e21ebb3bd115f.tar.bz2 |
cmTarget: Improve HaveBuildTreeRPATH implementation
Use GetLinkImplementationLibraries instead of GetDirectLinkLibraries
because it tells us whether there will be any libraries to link after
evaluating generator expressions. Also GetDirectLinkLibraries will be
dropped soon.
-rw-r--r-- | Source/cmTarget.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 7a63db4..f4a0224 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4551,9 +4551,12 @@ bool cmTarget::HaveBuildTreeRPATH(const std::string& config) const { return false; } - std::vector<std::string> libs; - this->GetDirectLinkLibraries(config, libs); - return !libs.empty(); + if(LinkImplementation const* impl = + this->GetLinkImplementationLibraries(config)) + { + return !impl->Libraries.empty(); + } + return false; } //---------------------------------------------------------------------------- |