Some more variable cleanup.

This commit is contained in:
Pentarctagon 2021-05-22 16:10:12 -05:00
parent e53f688c22
commit 6bccce4d0f
No known key found for this signature in database
GPG key ID: 9456BC54A21DBFA0

View file

@ -40,9 +40,9 @@ link_directories(
set(common-external-libs ${ICU_DATA_LIBRARY} ${ICU_I18N_LIBRARY} ${ICU_UC_LIBRARY})
if(WIN32)
set(common-external-libs ${common-external-libs} shlwapi.lib winmm.lib crypt32.lib)
endif()
if(APPLE)
elseif(MINGW)
set(common-external-libs ${common-external-libs} wsock32 ws2_32 shlwapi winmm)
elseif(APPLE)
set(common-external-libs ${common-external-libs} ${IOKIT_LIBRARY} ${SECURITY_LIBRARY})
endif()
@ -61,20 +61,6 @@ if(ENABLE_HISTORY AND HISTORY_FOUND)
set(game-external-libs ${game-external-libs} ${HISTORY_LIBRARY})
endif()
set(server-external-libs
${common-external-libs}
${MYSQL_LIBS}
)
if(NOT WIN32)
set(server-external-libs ${server-external-libs} -lpthread)
endif()
if(MINGW)
set(server-external-libs ${server-external-libs} wsock32 ws2_32 shlwapi winmm)
set(game-external-libs ${game-external-libs} wsock32 ws2_32 shlwapi winmm)
endif()
# get source lists
GetSources("lua" lua_sources)
GetSources("libwesnoth_sdl" wesnoth_sdl_sources)
@ -254,7 +240,8 @@ if(ENABLE_SERVER)
target_link_libraries(wesnothd
wesnoth-common
${server-external-libs}
-lpthread
${MYSQL_LIBS}
OpenSSL::Crypto
OpenSSL::SSL
Boost::iostreams
@ -295,7 +282,8 @@ if(ENABLE_CAMPAIGN_SERVER)
target_link_libraries(
campaignd
wesnoth-common
${server-external-libs}
-lpthread
${MYSQL_LIBS}
OpenSSL::Crypto
OpenSSL::SSL
Boost::iostreams