[boost] Install usage file (#14517)

* [boost] Install usage file

* Switch to target style

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
This commit is contained in:
Phoebe 2020-11-14 05:38:59 +08:00 committed by GitHub
parent 9ee052937c
commit 4073d297e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 19 additions and 5 deletions

View File

@ -1,3 +1,4 @@
Source: boost-modular-build-helper
Version: 1.74.0
Port-Version: 1
Build-Depends: boost-uninstall

View File

@ -148,6 +148,8 @@ function(boost_modular_build)
if(NOT EXISTS ${CURRENT_PACKAGES_DIR}/lib)
message(FATAL_ERROR "No libraries were produced. This indicates a failure while building the boost library.")
endif()
file(INSTALL ${CURRENT_INSTALLED_DIR}/share/boost-build/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
return()
endif()
@ -446,4 +448,5 @@ function(boost_modular_build)
endif()
vcpkg_copy_pdbs()
file(INSTALL ${CURRENT_INSTALLED_DIR}/share/boost-build/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
endfunction()

View File

@ -7,6 +7,7 @@ file(
${CMAKE_CURRENT_LIST_DIR}/nothing.bat
${CMAKE_CURRENT_LIST_DIR}/user-config.jam
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
${CMAKE_CURRENT_LIST_DIR}/usage
DESTINATION
${CURRENT_PACKAGES_DIR}/share/boost-build
)

View 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> ...)

View File

@ -1,5 +1,5 @@
Source: boost-vcpkg-helpers
Version: 7
Port-Version: 1
Port-Version: 2
Description: a set of vcpkg-internal scripts used to modularize boost
Build-Depends: boost-uninstall

View File

@ -19,6 +19,6 @@ function(boost_modular_headers)
FILENAME "boost_LICENSE_1_0.txt"
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
)
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()

View File

@ -1,7 +1,8 @@
file(
COPY ${CMAKE_CURRENT_LIST_DIR}/boost-modular-headers.cmake
DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-vcpkg-helpers
file(COPY
${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)

View 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> ...)