2020-12-24 09:16:42 +08:00
|
|
|
# Automatically generated by scripts/boost/generate-ports.ps1
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO boostorg/json
|
|
|
|
REF boost-1.75.0
|
|
|
|
SHA512 887a8758d247eb76b41526107e4006de7d18f107afc9692d95eb2ba7beb9cfa6d5f2e721523a8d4530aec38bd1f6eb0f6364aa05b5bf95f5428f4c9fa3d24b7c
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-05-29 02:20:52 +08:00
|
|
|
# see https://github.com/boostorg/json/issues/556 fore more details
|
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile" "import ../../config/checks/config" "import config/checks/config")
|
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile" "\n <library>/boost//container/<warnings-as-errors>off" "")
|
|
|
|
|
|
|
|
vcpkg_replace_string("${SOURCE_PATH}/Jamfile" "import ../config/checks/config" "import build/config/checks/config")
|
|
|
|
|
|
|
|
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/build/config")
|
|
|
|
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
|
|
|
message(FATAL_ERROR "boost-json requires a newer version of vcpkg in order to build.")
|
|
|
|
endif()
|
|
|
|
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
|
|
|
boost_modular_build(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
|
|
|
)
|
2020-12-24 09:16:42 +08:00
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
|
|
|
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|