summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-07-18 15:40:23 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-07-18 15:40:23 (GMT)
commit212dfb1b8efcef42881337023ddb9ac0fe4081c2 (patch)
tree1859303d6c79b7268c1c1c9109fd22f3a1da85b7 /Source/cmSystemTools.cxx
parent6c757d2715c0b0001b94ad3e11e457a6968f6721 (diff)
downloadCMake-212dfb1b8efcef42881337023ddb9ac0fe4081c2.zip
CMake-212dfb1b8efcef42881337023ddb9ac0fe4081c2.tar.gz
CMake-212dfb1b8efcef42881337023ddb9ac0fe4081c2.tar.bz2
limit library search to appropriate extensions
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 5428081..42ee9fd 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -942,6 +942,7 @@ std::string cmSystemTools::FindLibrary(const char* name,
for(std::vector<std::string>::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.