aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel El-Borai <sam@elborai.me>2020-10-09 05:53:25 +0200
committerGitHub <noreply@github.com>2020-10-08 20:53:25 -0700
commit54dbd5ca9e808d3437a364c434bff7c6621f42ae (patch)
treef687484ab20096466380e91b29586c451fd47a12
parent34ea42394dc81ff7556fd1ac0c2034f47ed8a878 (diff)
downloadvcpkg-54dbd5ca9e808d3437a364c434bff7c6621f42ae.tar.gz
vcpkg-54dbd5ca9e808d3437a364c434bff7c6621f42ae.zip
[fmt] Add and install usage file (#13815)
-rw-r--r--ports/fmt/CONTROL2
-rw-r--r--ports/fmt/portfile.cmake2
-rw-r--r--ports/fmt/usage7
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)