Some more variable cleanup.
This commit is contained in:
parent
e53f688c22
commit
6bccce4d0f
1 changed files with 7 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue