vcpkg/ports/boost-locale/portfile.cmake

31 lines
993 B
CMake
Raw Normal View History

2017-12-05 13:00:50 -08:00
# 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.71.0
SHA512 392663718ca3cc2076c675701a6df61836a4bce25d48391c7e59dabe23dbcb365f496b9f44ffe2722bb8bcf60e7b93fd313418e9bbad4a84ac38d596c6b767e4
2017-12-05 13:00:50 -08:00
HEAD_REF master
)
if("icu" IN_LIST FEATURES)
set(BOOST_LOCALE_ICU on)
else()
set(BOOST_LOCALE_ICU off)
endif()
2018-01-17 22:08:48 -08:00
include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
2017-12-05 13:00:50 -08:00
boost_modular_build(
SOURCE_PATH ${SOURCE_PATH}
2018-04-17 16:26:01 -07:00
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/cmake-fragment.cmake"
2017-12-05 13:00:50 -08:00
OPTIONS
boost.locale.iconv=off
boost.locale.posix=off
/boost/locale//boost_locale
boost.locale.icu=${BOOST_LOCALE_ICU}
)
2018-01-17 22:08:48 -08:00
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
2017-12-05 13:00:50 -08:00
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})