forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[boost-modular-headers] download the license file only once (microsof…
…t#22462) * [boost-modular-headers] download license file only once for every header-only library * update version
- Loading branch information
Showing
6 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,20 @@ | ||
function(boost_modular_headers) | ||
cmake_parse_arguments(_bm "" "SOURCE_PATH" "" ${ARGN}) | ||
|
||
set(BOOST_VERSION 1.78.0) | ||
|
||
if(NOT DEFINED _bm_SOURCE_PATH) | ||
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_headers.") | ||
endif() | ||
|
||
message(STATUS "Packaging headers") | ||
|
||
message(STATUS "Copying headers") | ||
file( | ||
COPY ${_bm_SOURCE_PATH}/include/boost | ||
DESTINATION ${CURRENT_PACKAGES_DIR}/include | ||
) | ||
message(STATUS "Copying headers done") | ||
|
||
message(STATUS "Packaging headers done") | ||
|
||
vcpkg_download_distfile(ARCHIVE | ||
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/LICENSE_1_0.txt" | ||
FILENAME "boost_LICENSE_1_0.txt" | ||
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8 | ||
file(INSTALL | ||
${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage | ||
${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/copyright | ||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} | ||
) | ||
file(INSTALL ${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) | ||
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
|
||
set(BOOST_VERSION 1.78.0) | ||
|
||
file(COPY | ||
file(INSTALL | ||
${CMAKE_CURRENT_LIST_DIR}/boost-modular-headers.cmake | ||
${CMAKE_CURRENT_LIST_DIR}/usage | ||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} | ||
) | ||
|
||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
vcpkg_download_distfile(LICENSE | ||
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/LICENSE_1_0.txt" | ||
FILENAME "boost_LICENSE_1_0.txt" | ||
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8 | ||
) | ||
|
||
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters