diff --git a/ports/fmt/CONTROL b/ports/fmt/CONTROL index 356f69981be04c..f89366efe9b4b0 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 33529f65f3740e..5de78ec981cabb 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 00000000000000..c9988aa79f7925 --- /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)