removed redundant entry SDL2MAIN_LIBRARY entry that is already included in variable SDL2_LIBRARY

removed redundant entry SDL2MAIN_LIBRARY entry that is already included in variable SDL2_LIBRARY

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 94d6861..d16ac11 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -553,7 +553,7 @@ endif()
 
 	TARGET_INCLUDE_DIRECTORIES( engine PRIVATE ${OPENSSL_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIR} ${FREETYPE_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${PNG_INCLUDE_DIR} ${PDCURSES_INCLUDE_DIR} ${MOUNT_DIR} ${JPEG_INCLUDE_DIR} ${BZ2_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR} ${OGG_INCLUDE_DIR} ${VORBIS_INCLUDE_DIR} )
 
-	TARGET_LINK_LIBRARIES( engine ${OPENSSL_LIBRARIES} ${OPENGL_LIBRARIES} ${SDL2_LIBRARY} ${SDL2MAIN_LIBRARY} ${FREETYPE_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PNG_LIBRARIES} ${PDCURSES_LIBRARY} ${JPEG_LIBRARIES} ${LINK_LIBRARY} ${BZ2_LIBRARY} ${OPENAL_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY} )
+	TARGET_LINK_LIBRARIES( engine ${OPENSSL_LIBRARIES} ${OPENGL_LIBRARIES} ${SDL2_LIBRARY}  ${FREETYPE_LIBRARIES} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PNG_LIBRARIES} ${PDCURSES_LIBRARY} ${JPEG_LIBRARIES} ${LINK_LIBRARY} ${BZ2_LIBRARY} ${OPENAL_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY} )
 
 	if( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
 		link_directories( /opt/local/lib )
@@ -593,7 +593,7 @@ endif()
 
 	TARGET_INCLUDE_DIRECTORIES( client PRIVATE ${SDL2_INCLUDE_DIR} )
 
-	TARGET_LINK_LIBRARIES( client ${SDL2_LIBRARY} ${SDL2MAIN_LIBRARY} )
+	TARGET_LINK_LIBRARIES( client ${SDL2_LIBRARY}  )
 
 if(MSVC)
 	target_compile_options(client PRIVATE "/MP")
@@ -637,7 +637,7 @@ if( BUILD_SERVER )
 	find_package( OpenSSL REQUIRED )
 	
 	TARGET_INCLUDE_DIRECTORIES( server PRIVATE ${OPENSSL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${PDCURSES_INCLUDE_DIR} ${MOUNT_DIR} ${BZ2_INCLUDE_DIR} )
-	target_link_libraries( server ${OS_LIBRARIES} ${OPENSSL_LIBRARIES} ${SDL2_LIBRARY} ${SDL2MAIN_LIBRARY} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PDCURSES_LIBRARY} ${PDCURSES_LIBRARY} ${BZ2_LIBRARY} )
+	target_link_libraries( server ${OS_LIBRARIES} ${OPENSSL_LIBRARIES} ${SDL2_LIBRARY}  ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PDCURSES_LIBRARY} ${PDCURSES_LIBRARY} ${BZ2_LIBRARY} )
 	# The following section finds the OPTIONAL dependencies and makes them available to the target
 
 	set( CURSES_NEED_NCURSES 1 ) # Tells FindCurses that ncurses is required
@@ -681,7 +681,7 @@ if( BUILD_AUTOUPDATE_SERVER )
 	find_package( OpenSSL REQUIRED )
 	
 	TARGET_INCLUDE_DIRECTORIES( autoupdateserver PRIVATE ${OPENSSL_INCLUDE_DIRS} ${SDL2_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS} ${PDCURSES_INCLUDE_DIR} ${MOUNT_DIR} )
-	target_link_libraries( autoupdateserver ${SDL2_LIBRARY} ${OPENSSL_LIBRARIES} ${SDL2MAIN_LIBRARY} ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PDCURSES_LIBRARY} ${PDCURSES_LIBRARY} )
+	target_link_libraries( autoupdateserver ${SDL2_LIBRARY} ${OPENSSL_LIBRARIES}  ${ZLIB_LIBRARIES} ${CURL_LIBRARIES} ${PDCURSES_LIBRARY} ${PDCURSES_LIBRARY} )
 	# The following section finds the OPTIONAL dependencies and makes them available to the target
 
 	set( CURSES_NEED_NCURSES 1 ) # Tells FindCurses that ncurses is required

GitHub
sha: 7907cf7a