diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-11 13:28:59 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-02-11 13:28:59 (GMT) |
commit | ff6bc566163ef85f4540240e933b47c47df481e1 (patch) | |
tree | ef18e1ae1f3f393d58fe7a56ef7d6bc79a7ba4ae /Source | |
parent | eaf25c6739a3d5c82d4e4e2059ed12a745560ec0 (diff) | |
download | CMake-ff6bc566163ef85f4540240e933b47c47df481e1.zip CMake-ff6bc566163ef85f4540240e933b47c47df481e1.tar.gz CMake-ff6bc566163ef85f4540240e933b47c47df481e1.tar.bz2 |
ENH: On Cygwin shared libraries have only .dll file no .lib file, so when finding library on cygwin, search also for .dll. Also fix SimpleInstall test on cygwin
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 825e27e..59b2dff 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1241,6 +1241,14 @@ kwsys_stl::string SystemTools::FindLibrary(const char* name, { return SystemTools::CollapseFullPath(tryPath.c_str()); } + tryPath = *p; + tryPath += "/lib"; + tryPath += name; + tryPath += ".dll"; + if(SystemTools::FileExists(tryPath.c_str())) + { + return SystemTools::CollapseFullPath(tryPath.c_str()); + } #endif } |