Merge topic 'ChangeSDLLinkLibraryOrder'
981629f
Swap linking order of SDLmain and SDL (#0013769)
This commit is contained in:
commit
ba6e8264fe
|
@ -122,7 +122,7 @@ if(SDL_LIBRARY_TEMP)
|
||||||
if(SDLMAIN_LIBRARY AND NOT SDL_BUILDING_LIBRARY)
|
if(SDLMAIN_LIBRARY AND NOT SDL_BUILDING_LIBRARY)
|
||||||
list(FIND SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}" _SDL_MAIN_INDEX)
|
list(FIND SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}" _SDL_MAIN_INDEX)
|
||||||
if(_SDL_MAIN_INDEX EQUAL -1)
|
if(_SDL_MAIN_INDEX EQUAL -1)
|
||||||
list(APPEND SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}")
|
set(SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}" ${SDL_LIBRARY_TEMP})
|
||||||
endif()
|
endif()
|
||||||
unset(_SDL_MAIN_INDEX)
|
unset(_SDL_MAIN_INDEX)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue