diff --git a/SystemTools.cxx b/SystemTools.cxx
index 1804b93e70927ab02a78d1b48a7de433deb6b55b..e4fa0652a9dd45c6551770983d8240c83d52c220 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -1249,14 +1249,6 @@ kwsys_stl::string SystemTools::FindLibrary(const char* name,
       {
       return SystemTools::CollapseFullPath(tryPath.c_str());
       }
-    tryPath = *p;
-    tryPath += "/";
-    tryPath += name;
-    tryPath += ".dll";
-    if(SystemTools::FileExists(tryPath.c_str()))
-      {
-      return SystemTools::CollapseFullPath(tryPath.c_str());
-      }
 #endif
     }