BUG: fix mingw module load tests

This commit is contained in:
Bill Hoffman 2004-02-16 09:50:06 -05:00
parent a46e0d3476
commit 07b4d8bbca
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,6 @@ SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a") SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll") # .so
SET(CMAKE_SHARED_MODULE_PREFIX "")
SET(CMAKE_DL_LIBS "") SET(CMAKE_DL_LIBS "")
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared

View File

@ -274,7 +274,11 @@ cmDynamicLoader::GetSymbolAddress(cmLibHandle lib, const char* sym)
const char* cmDynamicLoader::LibPrefix() const char* cmDynamicLoader::LibPrefix()
{ {
#if defined( __MINGW32__ )
return "lib";
#else
return ""; return "";
#endif
} }
const char* cmDynamicLoader::LibExtension() const char* cmDynamicLoader::LibExtension()