vcpkg/ports/boost-vcpkg-helpers/boost-modular-headers.cmake

27 lines
1.0 KiB
CMake
Raw Normal View History

2018-01-18 14:08:48 +08:00
function(boost_modular_headers)
cmake_parse_arguments(_bm "" "SOURCE_PATH" "" ${ARGN})
2021-09-28 08:12:39 +08:00
set(BOOST_VERSION 1.77.0)
2018-01-18 14:08:48 +08:00
if(NOT DEFINED _bm_SOURCE_PATH)
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_headers.")
endif()
message(STATUS "Packaging headers")
file(
COPY ${_bm_SOURCE_PATH}/include/boost
DESTINATION ${CURRENT_PACKAGES_DIR}/include
)
message(STATUS "Packaging headers done")
vcpkg_download_distfile(ARCHIVE
2021-09-28 08:12:39 +08:00
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/LICENSE_1_0.txt"
2018-01-18 14:08:48 +08:00
FILENAME "boost_LICENSE_1_0.txt"
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
)
file(INSTALL ${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
2018-01-18 14:08:48 +08:00
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
endfunction()