summaryrefslogtreecommitdiffstats
path: root/Modules/FindSDL.cmake
diff options
context:
space:
mode:
authorBenjamin Eikel <cmake@eikel.org>2012-12-02 13:32:47 (GMT)
committerBenjamin Eikel <cmake@eikel.org>2012-12-02 13:32:47 (GMT)
commit981629f701c598f58115445456ee733077beae8d (patch)
treecc1937216a607bf9cdd614fed4c08d108e63c5b7 /Modules/FindSDL.cmake
parent1d3b35fd8a59c6f987b4caab17330955dbaf32bc (diff)
downloadCMake-981629f701c598f58115445456ee733077beae8d.zip
CMake-981629f701c598f58115445456ee733077beae8d.tar.gz
CMake-981629f701c598f58115445456ee733077beae8d.tar.bz2
Swap linking order of SDLmain and SDL (#0013769)
Diffstat (limited to 'Modules/FindSDL.cmake')
-rw-r--r--Modules/FindSDL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSDL.cmake b/Modules/FindSDL.cmake
index f2e9f25..fec142e 100644
--- a/Modules/FindSDL.cmake
+++ b/Modules/FindSDL.cmake
@@ -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()