Skip to content

Commit

Permalink
Add -lmingw32 to SDL_LIBS
Browse files Browse the repository at this point in the history
This prevents undefined references to WinMain@16 by consumers.
  • Loading branch information
manisandro authored and sezero committed Jul 25, 2021
1 parent aa9919b commit 0c9c4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -234,7 +234,7 @@ if(SDL12DEVEL)
if(WIN32)
set(SDL_CFLAGS "")
set(SDL_RLD_FLAGS "")
set(SDL_LIBS "-lSDLmain -lSDL -mwindows") # -lmingw32 -lSDL -mwindows
set(SDL_LIBS "-lmingw32 -lSDLmain -lSDL -mwindows")
set(SDL_STATIC_LIBS "")
elseif(APPLE)
set(SDL_CFLAGS "-D_THREAD_SAFE")
Expand Down

0 comments on commit 0c9c4ff

Please sign in to comment.