2020-11-26 03:26:33 +08:00
|
|
|
set(_B2_OPTIONS_FEATURES "@FEATURES@")
|
|
|
|
if("icu" IN_LIST _B2_OPTIONS_FEATURES)
|
|
|
|
set(BOOST_LOCALE_ICU_FEATURE on)
|
|
|
|
else()
|
|
|
|
set(BOOST_LOCALE_ICU_FEATURE off)
|
|
|
|
endif()
|
2020-05-14 01:26:05 +08:00
|
|
|
|
2020-11-26 03:26:33 +08:00
|
|
|
if(@VCPKG_TARGET_IS_WINDOWS@)
|
2020-05-14 01:26:05 +08:00
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
boost.locale.iconv=off
|
|
|
|
boost.locale.posix=off
|
|
|
|
/boost/locale//boost_locale
|
2020-11-26 03:26:33 +08:00
|
|
|
boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
|
2020-05-14 01:26:05 +08:00
|
|
|
)
|
2021-01-26 07:52:09 +08:00
|
|
|
elseif(@VCPKG_TARGET_IS_ANDROID@)
|
|
|
|
find_library(LIBICONV_LIBRARY iconv)
|
|
|
|
get_filename_component(LIBICONV_DIR "${LIBICONV_LIBRARY}" DIRECTORY)
|
|
|
|
get_filename_component(LIBICONV_DIR "${LIBICONV_DIR}" DIRECTORY)
|
|
|
|
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
boost.locale.iconv=on
|
|
|
|
boost.locale.posix=off
|
|
|
|
/boost/locale//boost_locale
|
|
|
|
boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
|
|
|
|
-sICONV_PATH=${LIBICONV_DIR}
|
|
|
|
)
|
2020-05-14 01:26:05 +08:00
|
|
|
else()
|
|
|
|
find_library(LIBICONV_LIBRARY iconv)
|
|
|
|
get_filename_component(LIBICONV_DIR "${LIBICONV_LIBRARY}" DIRECTORY)
|
|
|
|
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
boost.locale.iconv=on
|
|
|
|
boost.locale.posix=on
|
|
|
|
/boost/locale//boost_locale
|
2020-11-26 03:26:33 +08:00
|
|
|
boost.locale.icu=${BOOST_LOCALE_ICU_FEATURE}
|
2020-05-14 01:26:05 +08:00
|
|
|
-sICONV_PATH=${LIBICONV_DIR}
|
|
|
|
)
|
2020-10-29 05:22:51 +08:00
|
|
|
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
|
|
|
|
list(APPEND B2_OPTIONS
|
|
|
|
boost.locale.force-found-iconv=on
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|