diff options
| -rw-r--r-- | ports/fmt/CONTROL | 2 | ||||
| -rw-r--r-- | ports/fmt/portfile.cmake | 2 | ||||
| -rw-r--r-- | ports/fmt/usage | 7 |
3 files changed, 10 insertions, 1 deletions
diff --git a/ports/fmt/CONTROL b/ports/fmt/CONTROL index 356f69981..f89366efe 100644 --- a/ports/fmt/CONTROL +++ b/ports/fmt/CONTROL @@ -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. diff --git a/ports/fmt/portfile.cmake b/ports/fmt/portfile.cmake index 33529f65f..5de78ec98 100644 --- a/ports/fmt/portfile.cmake +++ b/ports/fmt/portfile.cmake @@ -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}) diff --git a/ports/fmt/usage b/ports/fmt/usage new file mode 100644 index 000000000..c9988aa79 --- /dev/null +++ b/ports/fmt/usage @@ -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) |
