summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-12-05 15:30:31 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-12-05 15:30:31 (GMT)
commitba6e8264fed13d53447593f96c01fc0d7fc5db4d (patch)
tree6412e81fcfcc11b53b78f5b58d5d99e51b745219 /Modules
parentd208d1494f7d9a3895981dfd90fa61239a8c6cea (diff)
parent981629f701c598f58115445456ee733077beae8d (diff)
downloadCMake-ba6e8264fed13d53447593f96c01fc0d7fc5db4d.zip
CMake-ba6e8264fed13d53447593f96c01fc0d7fc5db4d.tar.gz
CMake-ba6e8264fed13d53447593f96c01fc0d7fc5db4d.tar.bz2
Merge topic 'ChangeSDLLinkLibraryOrder'
981629f Swap linking order of SDLmain and SDL (#0013769)
Diffstat (limited to 'Modules')
-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()