소스 검색

BUG: Like cygwin, mingw does not produce .lib file for shared libraries, so search for dll when searching for library

Andy Cedilnik 22 년 전
부모
커밋
729e2a427a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
Source/kwsys/SystemTools.cxx

@@ -1199,7 +1199,7 @@ kwsys_stl::string SystemTools::FindLibrary(const char* name,
   for(kwsys_stl::vector<kwsys_stl::string>::const_iterator p = path.begin();
       p != path.end(); ++p)
     {
-#if defined(_WIN32) && !defined(__CYGWIN__)
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
     tryPath = *p;
     tryPath += "/";
     tryPath += name;