mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 05:01:49 +08:00
31 lines
993 B
CMake
31 lines
993 B
CMake
# Automatically generated by boost-vcpkg-helpers/generate-ports.ps1
|
|
|
|
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO boostorg/locale
|
|
REF boost-1.67.0
|
|
SHA512 220ed43884722e7a342b8fa5010e8659ccebcd106907c38052b411d710f110924a2b4622cb10e1302ad0553cf350430f02c63e3e66d45bb38b47d7eb022d01d9
|
|
HEAD_REF master
|
|
)
|
|
|
|
if("icu" IN_LIST FEATURES)
|
|
set(BOOST_LOCALE_ICU on)
|
|
else()
|
|
set(BOOST_LOCALE_ICU off)
|
|
endif()
|
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
|
boost_modular_build(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/cmake-fragment.cmake"
|
|
OPTIONS
|
|
boost.locale.iconv=off
|
|
boost.locale.posix=off
|
|
/boost/locale//boost_locale
|
|
boost.locale.icu=${BOOST_LOCALE_ICU}
|
|
)
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
|
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|