$ git diff src/cmake-3.0.1/Source/cmOrderDirectories.cxx
diff --git a/src/cmake-3.0.1/Source/cmOrderDirectories.cxx b/src/cmake-3.0.1/Source/cmOrderDirectories.cxx
index 86beb97..ed7702a 100644
--- a/src/cmake-3.0.1/Source/cmOrderDirectories.cxx
+++ b/src/cmake-3.0.1/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))
+      char realpth [100];
+      realpath(dir.data(),realpth);
+      if(dir != this->Directory && this->FindConflict(dir) &&
+         dir != realpth)
         {
         // 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,6 +95,9 @@ public:
       {
       // Check if this directory conflicts with the entry.
       std::string const& dir = this->OD->OriginalDirectories[i];
-      if(dir != this->Directory && this->FindConflict(dir))
+      char realpth [100];
+      realpath(dir.data(),realpth);
+      if(dir != this->Directory && this->FindConflict(dir) &&
+         dir != realpth)
         {
         // The library will be found in this directory but it is
         // supposed to be found in an implicit search directory.