mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-17 15:18:20 +00:00
Update how the icu libraries are linked.
This commit is contained in:
parent
41f2263c09
commit
edfa4ac345
|
@ -1,5 +1,5 @@
|
|||
# set minimum version
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
|
||||
project(wesnoth)
|
||||
|
||||
|
@ -79,6 +79,7 @@ else()
|
|||
endif()
|
||||
|
||||
find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS iostreams program_options regex system thread random coroutine locale filesystem)
|
||||
find_package(ICU REQUIRED COMPONENTS data i18n uc)
|
||||
|
||||
# no, gettext executables are not required when NLS is deactivated
|
||||
find_package(Gettext)
|
||||
|
|
|
@ -37,10 +37,9 @@ link_directories(
|
|||
${LIBDBUS_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
set(common-external-libs ${ICU_DATA_LIBRARY} ${ICU_I18N_LIBRARY} ${ICU_UC_LIBRARY})
|
||||
if(WIN32)
|
||||
set(common-external-libs shlwapi.lib winmm.lib)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
set(common-external-libs "-licudata -licui18n -licuuc")
|
||||
set(common-external-libs ${common-external-libs} shlwapi.lib winmm.lib)
|
||||
endif(WIN32)
|
||||
|
||||
set(game-external-libs
|
||||
|
|
Loading…
Reference in New Issue
Block a user