2020-12-16 07:00:41 +08:00
|
|
|
# Automatically generated by scripts/boost/generate-ports.ps1
|
2017-12-06 05:00:50 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO boostorg/atomic
|
2022-01-11 03:47:12 +08:00
|
|
|
REF boost-1.78.0
|
|
|
|
SHA512 a6eba43c7038228fa7ce537b05429e263397bc914235d9ad9aa47badce5455f4905e15e5f1979c19088b47faca3091bd0dfcdb017290f796d34a36b682592345
|
2017-12-06 05:00:50 +08:00
|
|
|
HEAD_REF master
|
2022-01-11 03:47:12 +08:00
|
|
|
PATCHES 0001-fix-compilation-for-uwp.patch
|
2017-12-06 05:00:50 +08:00
|
|
|
)
|
|
|
|
|
2020-12-24 09:16:42 +08:00
|
|
|
file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)
|
|
|
|
string(REPLACE
|
|
|
|
"project.load [ path.join [ path.make $(here:D) ] ../../config/checks/architecture ]"
|
2022-01-11 03:47:12 +08:00
|
|
|
"project.load [ path.join [ path.make $(here:D) ] ../config/checks/architecture ]"
|
2020-12-24 09:16:42 +08:00
|
|
|
_contents "${_contents}")
|
|
|
|
file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
|
2022-01-11 03:47:12 +08:00
|
|
|
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
|
2021-03-27 03:55:34 +08:00
|
|
|
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
|
|
|
message(FATAL_ERROR "boost-atomic requires a newer version of vcpkg in order to build.")
|
|
|
|
endif()
|
|
|
|
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
2017-12-06 05:00:50 +08:00
|
|
|
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
2018-01-18 14:08:48 +08:00
|
|
|
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
2017-12-06 05:00:50 +08:00
|
|
|
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|