CMakeLists: add boost::locale dependency for client

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
This commit is contained in:
Patrick Donnelly 2024-12-31 12:59:12 -05:00
parent 668a556322
commit db58a29a53
No known key found for this signature in database
GPG Key ID: FA47FD0B0367D313
3 changed files with 11 additions and 1 deletions

View File

@ -729,6 +729,11 @@ if(WITH_RADOSGW AND WITH_RADOSGW_LUA_PACKAGES)
list(APPEND BOOST_COMPONENTS filesystem)
endif()
if(WITH_LIBCEPHFS)
find_package(ICU REQUIRED COMPONENTS uc i18n)
list(APPEND BOOST_COMPONENTS locale)
endif()
set(Boost_USE_MULTITHREADED ON)
CMAKE_DEPENDENT_OPTION(WITH_BOOST_VALGRIND "Boost support for valgrind" OFF

View File

@ -207,6 +207,7 @@ function install_boost_on_ubuntu {
ceph-libboost-date-time${boost_ver}-dev \
ceph-libboost-filesystem${boost_ver}-dev \
ceph-libboost-iostreams${boost_ver}-dev \
ceph-libboost-locale${boost_ver}-dev \
ceph-libboost-program-options${boost_ver}-dev \
ceph-libboost-python${boost_ver}-dev \
ceph-libboost-random${boost_ver}-dev \

View File

@ -12,4 +12,8 @@ set(libclient_srcs
add_library(client STATIC ${libclient_srcs})
target_link_libraries(client
legacy-option-headers
osdc)
osdc
Boost::locale
ICU::uc
ICU::i18n
)