Skip to content

Commit

Permalink
Remove "lib" prefix from DLL file on MinGW builds
Browse files Browse the repository at this point in the history
closes bug #4209.
  • Loading branch information
Wohlstand committed Jun 29, 2018
1 parent c3178e6 commit 3a11bba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -210,6 +210,12 @@ endif()
set(SDL_LIBS "-lSDL2")
set(SDL_CFLAGS "")

# When building shared lib for Windows with MinGW,
# avoid the DLL having a "lib" prefix
if(WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif()

# Emscripten toolchain has a nonempty default value for this, and the checks
# in this file need to change that, so remember the original value, and
# restore back to that afterwards. For check_function_exists() to work in
Expand Down

0 comments on commit 3a11bba

Please sign in to comment.