summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-10 15:23:12 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-10 15:23:12 (GMT)
commitcd0ead3c9496478136b75155abeee45c80187fe1 (patch)
tree23cabc7240541646bc2c4b7e0be79c908bf46727
parente03b474fa83a1d17f0c74fc0b046a2eeedf13b60 (diff)
parentf99cc9c389189f4137ca578a5abb1556bfb733d3 (diff)
downloadCMake-cd0ead3c9496478136b75155abeee45c80187fe1.zip
CMake-cd0ead3c9496478136b75155abeee45c80187fe1.tar.gz
CMake-cd0ead3c9496478136b75155abeee45c80187fe1.tar.bz2
Merge topic 'tolerate-lib-dir-symlink'
f99cc9c3 Tolerate symlinks during RPATH ordering (#13429)
-rw-r--r--Source/cmOrderDirectories.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx
index 71a3497..007364c 100644
--- a/Source/cmOrderDirectories.cxx
+++ b/Source/cmOrderDirectories.cxx
@@ -72,7 +72,10 @@ public:
{
// Check if this directory conflicts with the entry.
std::string const& dir = this->OD->OriginalDirectories[i];
- if(dir != this->Directory && this->FindConflict(dir))
+ if(dir != this->Directory &&
+ cmSystemTools::GetRealPath(dir) !=
+ cmSystemTools::GetRealPath(this->Directory) &&
+ this->FindConflict(dir))
{
// The library will be found in this directory but this is not
// the directory named for it. Add an entry to make sure the
@@ -90,7 +93,10 @@ public:
{
// Check if this directory conflicts with the entry.
std::string const& dir = this->OD->OriginalDirectories[i];
- if(dir != this->Directory && this->FindConflict(dir))
+ if(dir != this->Directory &&
+ cmSystemTools::GetRealPath(dir) !=
+ cmSystemTools::GetRealPath(this->Directory) &&
+ this->FindConflict(dir))
{
// The library will be found in this directory but it is
// supposed to be found in an implicit search directory.