From 212dfb1b8efcef42881337023ddb9ac0fe4081c2 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Wed, 18 Jul 2001 11:40:23 -0400 Subject: [PATCH] limit library search to appropriate extensions --- Source/cmSystemTools.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 5428081d5..42ee9fd11 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -942,6 +942,7 @@ std::string cmSystemTools::FindLibrary(const char* name, for(std::vector::const_iterator p = path.begin(); p != path.end(); ++p) { +#if defined(_WIN32) && !defined(__CYGWIN__) tryPath = *p; tryPath += "/"; tryPath += name; @@ -950,6 +951,7 @@ std::string cmSystemTools::FindLibrary(const char* name, { return cmSystemTools::CollapseFullPath(tryPath.c_str()); } +#else tryPath = *p; tryPath += "/lib"; tryPath += name; @@ -974,6 +976,7 @@ std::string cmSystemTools::FindLibrary(const char* name, { return cmSystemTools::CollapseFullPath(tryPath.c_str()); } +#endif } // Couldn't find the library.