Browse Source

Add support for mac dylib

Andy Cedilnik 23 years ago
parent
commit
cabe849c03
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Source/cmSystemTools.cxx

+ 8 - 0
Source/cmSystemTools.cxx

@@ -1670,6 +1670,14 @@ std::string cmSystemTools::FindLibrary(const char* name,
       {
       return cmSystemTools::CollapseFullPath(tryPath.c_str());
       }
+    tryPath = *p;
+    tryPath += "/lib";
+    tryPath += name;
+    tryPath += ".dylib";
+    if(cmSystemTools::FileExists(tryPath.c_str()))
+      {
+      return cmSystemTools::CollapseFullPath(tryPath.c_str());
+      }
 #endif
     }