mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:39:01 +08:00
[fmt] Add and install usage file (#13815)
This commit is contained in:
parent
34ea42394d
commit
54dbd5ca9e
@ -1,5 +1,5 @@
|
||||
Source: fmt
|
||||
Version: 7.0.3
|
||||
Port-Version: 2
|
||||
Port-Version: 3
|
||||
Homepage: https://github.com/fmtlib/fmt
|
||||
Description: Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.
|
||||
|
@ -59,4 +59,6 @@ if(VCPKG_TARGET_IS_WINDOWS)
|
||||
endif()
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# Handle post-build CMake instructions
|
||||
vcpkg_copy_pdbs()
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
|
7
ports/fmt/usage
Normal file
7
ports/fmt/usage
Normal file
@ -0,0 +1,7 @@
|
||||
The package fmt provides CMake targets:
|
||||
|
||||
find_package(fmt CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE fmt::fmt)
|
||||
|
||||
# Or use the header-only version
|
||||
target_link_libraries(main PRIVATE fmt::fmt-header-only)
|
Loading…
Reference in New Issue
Block a user