Remove "lib" prefix from DLL file on MinGW builds
authorVitaly Novichkov <admin@wohlnet.ru>
Fri, 29 Jun 2018 18:29:17 +0300
changeset 12065abc706dbb7af
parent 12063 5b6f649b6488
child 12067 0e37a23d93cb
Remove "lib" prefix from DLL file on MinGW builds

closes bug #4209.
CMakeLists.txt
     1.1 --- a/CMakeLists.txt	Thu Jul 12 16:52:45 2018 +0100
     1.2 +++ b/CMakeLists.txt	Fri Jun 29 18:29:17 2018 +0300
     1.3 @@ -210,6 +210,12 @@
     1.4  set(SDL_LIBS "-lSDL2")
     1.5  set(SDL_CFLAGS "")
     1.6  
     1.7 +# When building shared lib for Windows with MinGW,
     1.8 +# avoid the DLL having a "lib" prefix
     1.9 +if(WIN32)
    1.10 +  set(CMAKE_SHARED_LIBRARY_PREFIX "")
    1.11 +endif()
    1.12 +
    1.13  # Emscripten toolchain has a nonempty default value for this, and the checks
    1.14  # in this file need to change that, so remember the original value, and
    1.15  # restore back to that afterwards. For check_function_exists() to work in