mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 04:17:51 +08:00
22 lines
933 B
CMake
22 lines
933 B
CMake
#header-only library
|
|
include(vcpkg_common_functions)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/di-1.0.1)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://github.com/boost-experimental/di/archive/v1.0.1.tar.gz"
|
|
FILENAME "di-1.0.1.tar.gz"
|
|
SHA512 4e7270be51e7c8d0dcb6e0ba4bcf8e12904016086bdd59667954815f4acb03fc62447775885594a8403f5067a20b2520717fe979926d740dff0efa0c97ebf20c
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
file(INSTALL ${SOURCE_PATH}/include/boost
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
|
|
|
# boost-di license does not exist in source folder.
|
|
# it shares the boost license.
|
|
vcpkg_download_distfile(LICENSE
|
|
URLS http://www.boost.org/LICENSE_1_0.txt
|
|
FILENAME "boost-di-copyright"
|
|
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
|
)
|
|
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-di/copyright) |