mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 18:47:04 +08:00
[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:
parent
9ee052937c
commit
4073d297e1
@ -1,3 +1,4 @@
|
||||
Source: boost-modular-build-helper
|
||||
Version: 1.74.0
|
||||
Port-Version: 1
|
||||
Build-Depends: boost-uninstall
|
@ -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()
|
||||
|
@ -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
|
||||
)
|
4
ports/boost-modular-build-helper/usage
Normal file
4
ports/boost-modular-build-helper/usage
Normal 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> ...)
|
@ -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
|
@ -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()
|
||||
|
@ -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)
|
||||
|
4
ports/boost-vcpkg-helpers/usage
Normal file
4
ports/boost-vcpkg-helpers/usage
Normal 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> ...)
|
Loading…
Reference in New Issue
Block a user