mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 11:37:50 +08:00
24e8be5fcf
* [boost] update to 1.73 * [ompl] remove dependency to boost-disjoint-sets * [libtorrent] include fixes from RC_1_2 branch * [liblas] fix boost headers * [freeopcua] fix std headers * [pcl] fix build with Boost 1.73.0 * [hpx] fix build with Boost 1.73.0 * [libmysql] fix conflict with C++20 header <version> * [boost-modular-build-helper] move port-specific b2 options to the file `<port_dir>/b2-options.cmake` [boost-python] support Python2 (fixes #3495) * [boost-python] remove Python executable from user-config * [libtorrent] update version after merge * [libtorrent] add boost-variant dependency
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() |