summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorBernd Wachter <bwachter-tmw@lart.info>2010-02-01 21:45:23 +0100
committerBernd Wachter <bwachter-tmw@lart.info>2010-02-01 21:45:23 +0100
commitdf57cdf99fb73f144f40fad54121c88abf7f27d4 (patch)
treeee8ca10e6d8157830966781215c000e64e817ac9 /src/CMakeLists.txt
parent3100c4f8c1948cb8cdb2a2c79f7a5cd79f444bbe (diff)
downloadmana-df57cdf99fb73f144f40fad54121c88abf7f27d4.tar.gz
mana-df57cdf99fb73f144f40fad54121c88abf7f27d4.tar.bz2
mana-df57cdf99fb73f144f40fad54121c88abf7f27d4.tar.xz
mana-df57cdf99fb73f144f40fad54121c88abf7f27d4.zip
Change library link order
To resolve symbols properly for Win32 SDL_gfx needs to be included before SDL_main.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b56aeddb..94ad4d6c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -592,12 +592,13 @@ SET (PROGRAMS mana)
ADD_EXECUTABLE(mana WIN32 ${SRCS} ${SRCS_MANA} ${SRCS_EA})
-TARGET_LINK_LIBRARIES(mana ${SDL_LIBRARY}
+TARGET_LINK_LIBRARIES(mana
+ ${SDLGFX_LIBRARIES}
+ ${SDL_LIBRARY}
${SDLIMAGE_LIBRARY}
${SDLMIXER_LIBRARY}
${SDLNET_LIBRARY}
${SDLTTF_LIBRARY}
- ${SDLGFX_LIBRARIES}
${ENET_LIBRARIES}
${PNG_LIBRARIES}
${PHYSFS_LIBRARY}