mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:28:59 +08:00
25 lines
674 B
CMake
25 lines
674 B
CMake
|
if(VCPKG_TARGET_IS_WINDOWS)
|
||
|
if("icu" IN_LIST FEATURES)
|
||
|
set(BOOST_LOCALE_ICU on)
|
||
|
else()
|
||
|
set(BOOST_LOCALE_ICU off)
|
||
|
endif()
|
||
|
|
||
|
list(APPEND B2_OPTIONS
|
||
|
boost.locale.iconv=off
|
||
|
boost.locale.posix=off
|
||
|
/boost/locale//boost_locale
|
||
|
boost.locale.icu=${BOOST_LOCALE_ICU}
|
||
|
)
|
||
|
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
|
||
|
boost.locale.icu=off
|
||
|
-sICONV_PATH=${LIBICONV_DIR}
|
||
|
)
|
||
|
endif()
|