From f7ce6549125e645abba5801bbbde235099ba6ee5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 13 Feb 2004 10:51:44 -0500 Subject: [PATCH] ENH: change mingw to use libfoo.dll instead of foo.dll since it can link to them --- Modules/Platform/Windows-gcc.cmake | 2 +- Source/kwsys/SystemTools.cxx | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake index a927a77a8..c38df8517 100644 --- a/Modules/Platform/Windows-gcc.cmake +++ b/Modules/Platform/Windows-gcc.cmake @@ -1,7 +1,7 @@ SET(CMAKE_LINK_LIBRARY_SUFFIX "") SET(CMAKE_STATIC_LIBRARY_PREFIX "lib") SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a") -SET(CMAKE_SHARED_LIBRARY_PREFIX "") # lib +SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so SET(CMAKE_DL_LIBS "") SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 82acc9317..ac5c1b0f7 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/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 }