CMakeLists.txt
changeset 12065 abc706dbb7af
parent 12054 e604fe493d45
child 12071 1f8341f599c4
     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