Move PLATFORM_LIBS around to make sqlite3 link with libdl on some distros
authorPerttu Ahola <celeron55@gmail.com>
Fri, 23 Sep 2011 05:48:58 +0000 (08:48 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 26 Sep 2011 18:57:17 +0000 (21:57 +0300)
src/CMakeLists.txt

index c479b4e7392155533198835d39892d573871a2f2..c18bb64a70ddaea2272d2ac53312cc4e7cf1e754 100644 (file)
@@ -188,10 +188,10 @@ if(BUILD_CLIENT)
                ${PNG_LIBRARIES}
                ${X11_LIBRARIES}
                ${GETTEXT_LIBRARY}
-               ${PLATFORM_LIBS}
-               ${CLIENT_PLATFORM_LIBS}
                ${JTHREAD_LIBRARY}
                ${SQLITE3_LIBRARY}
+               ${PLATFORM_LIBS}
+               ${CLIENT_PLATFORM_LIBS}
        )
 endif(BUILD_CLIENT)
 
@@ -200,9 +200,9 @@ if(BUILD_SERVER)
        target_link_libraries(
                ${PROJECT_NAME}server
                ${ZLIB_LIBRARIES}
-               ${PLATFORM_LIBS}
                ${JTHREAD_LIBRARY}
                ${SQLITE3_LIBRARY}
+               ${PLATFORM_LIBS}
        )
 endif(BUILD_SERVER)