Merge topic 'ChangeSDLLinkLibraryOrder'

981629f Swap linking order of SDLmain and SDL (#0013769)
This commit is contained in:
David Cole 2012-12-05 10:30:31 -05:00 committed by CMake Topic Stage
commit ba6e8264fe
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ if(SDL_LIBRARY_TEMP)
if(SDLMAIN_LIBRARY AND NOT SDL_BUILDING_LIBRARY)
list(FIND SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}" _SDL_MAIN_INDEX)
if(_SDL_MAIN_INDEX EQUAL -1)
list(APPEND SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}")
set(SDL_LIBRARY_TEMP "${SDLMAIN_LIBRARY}" ${SDL_LIBRARY_TEMP})
endif()
unset(_SDL_MAIN_INDEX)
endif()