early-access version 2853
This commit is contained in:
20
externals/vcpkg/ports/boost-vcpkg-helpers/boost-modular-headers.cmake
vendored
Executable file
20
externals/vcpkg/ports/boost-vcpkg-helpers/boost-modular-headers.cmake
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
function(boost_modular_headers)
|
||||
cmake_parse_arguments(_bm "" "SOURCE_PATH" "" ${ARGN})
|
||||
|
||||
if(NOT DEFINED _bm_SOURCE_PATH)
|
||||
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_headers.")
|
||||
endif()
|
||||
|
||||
message(STATUS "Copying headers")
|
||||
file(
|
||||
COPY ${_bm_SOURCE_PATH}/include/boost
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
||||
)
|
||||
message(STATUS "Copying headers done")
|
||||
|
||||
file(INSTALL
|
||||
${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/usage
|
||||
${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/copyright
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
||||
)
|
||||
endfunction()
|
||||
17
externals/vcpkg/ports/boost-vcpkg-helpers/portfile.cmake
vendored
Executable file
17
externals/vcpkg/ports/boost-vcpkg-helpers/portfile.cmake
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
|
||||
set(BOOST_VERSION 1.79.0)
|
||||
|
||||
file(INSTALL
|
||||
${CMAKE_CURRENT_LIST_DIR}/boost-modular-headers.cmake
|
||||
${CMAKE_CURRENT_LIST_DIR}/usage
|
||||
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
||||
)
|
||||
|
||||
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)
|
||||
4
externals/vcpkg/ports/boost-vcpkg-helpers/usage
vendored
Executable file
4
externals/vcpkg/ports/boost-vcpkg-helpers/usage
vendored
Executable file
@@ -0,0 +1,4 @@
|
||||
The package boost is compatible with built-in CMake targets:
|
||||
|
||||
find_package(Boost REQUIRED [COMPONENTS <libs>...])
|
||||
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)
|
||||
9
externals/vcpkg/ports/boost-vcpkg-helpers/vcpkg.json
vendored
Executable file
9
externals/vcpkg/ports/boost-vcpkg-helpers/vcpkg.json
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "boost-vcpkg-helpers",
|
||||
"version": "1.79.0",
|
||||
"description": "Internal vcpkg port used to modularize Boost",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"boost-uninstall"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user