[fmt] Add and install usage file (#13815)

This commit is contained in:
Samuel El-Borai 2020-10-09 05:53:25 +02:00 committed by GitHub
parent 34ea42394d
commit 54dbd5ca9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,5 @@
Source: fmt Source: fmt
Version: 7.0.3 Version: 7.0.3
Port-Version: 2 Port-Version: 3
Homepage: https://github.com/fmtlib/fmt 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. Description: Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.

View File

@ -59,4 +59,6 @@ if(VCPKG_TARGET_IS_WINDOWS)
endif() endif()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
# Handle post-build CMake instructions
vcpkg_copy_pdbs() vcpkg_copy_pdbs()
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

7
ports/fmt/usage Normal file
View 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)