Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ports/fmt/CONTROL
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 2 additions & 0 deletions ports/fmt/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 7 additions & 0 deletions ports/fmt/usage
Original file line number Diff line number Diff line change
@@ -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)