summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-02-12 14:13:31 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-02-12 14:13:31 (GMT)
commit6223d6008587e1661e2f5aa34008bf473faf591e (patch)
treedfe54113db0aa047f28aba71c3939cdcbea7a4f6 /Source/kwsys
parent729e2a427a0bc3ac3867a80f1d9fdfb153868a52 (diff)
downloadCMake-6223d6008587e1661e2f5aa34008bf473faf591e.zip
CMake-6223d6008587e1661e2f5aa34008bf473faf591e.tar.gz
CMake-6223d6008587e1661e2f5aa34008bf473faf591e.tar.bz2
Fix install test fail on mingw
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/SystemTools.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index ac5c1b0..82acc93 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -1249,6 +1249,14 @@ 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
}