From cabe849c03f210d104b2bc5a2571226d5e4ddcd2 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 24 Sep 2002 17:37:47 -0400 Subject: Add support for mac dylib --- Source/cmSystemTools.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index a5a6102..2be5fe8 100644 --- a/Source/cmSystemTools.cxx +++ b/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 } -- cgit v0.12