mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
Fix SDL2 missing main - Adding mingw32 to linking
This commit is contained in:
parent
b5b18c4cef
commit
86773e8e27
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ if(NOT SDL_FOUND)
|
||||||
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDLmain.lib" CACHE FILEPATH "Where the SDLmain library can be found" FORCE)
|
set(SDLMAIN_LIBRARY "${SDLDIR}/lib/win32/SDLmain.lib" CACHE FILEPATH "Where the SDLmain library can be found" FORCE)
|
||||||
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL.lib" CACHE FILEPATH "Where the SDL library can be found" FORCE)
|
set(SDL_LIBRARY "${SDLDIR}/lib/win32/SDL.lib" CACHE FILEPATH "Where the SDL library can be found" FORCE)
|
||||||
endif(AQUARIA_USE_SDL2)
|
endif(AQUARIA_USE_SDL2)
|
||||||
set(SDL_LIBRARY ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
set(SDL_LIBRARY -lmingw32 ${SDLMAIN_LIBRARY} ${SDL_LIBRARY}) # not seen by user
|
||||||
else(MACOSX)
|
else(MACOSX)
|
||||||
message(SEND_ERROR "We don't have a prebuilt SDL for this platform.")
|
message(SEND_ERROR "We don't have a prebuilt SDL for this platform.")
|
||||||
endif(MACOSX)
|
endif(MACOSX)
|
||||||
|
|
Loading…
Reference in a new issue