fmt: update to 10.0.0 (#2074)

* fmt: update to 10.0.0

* Fix hash

* fmt: rename export macro
pull/2075/head
Jérôme Leclercq 2 years ago committed by GitHub
parent 0e572a0829
commit 3cf0be3d0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      packages/f/fmt/xmake.lua

@ -4,6 +4,7 @@ package("fmt")
set_description("fmt is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams.")
set_urls("https://github.com/fmtlib/fmt/releases/download/$(version)/fmt-$(version).zip")
add_versions("10.0.0", "4943cb165f3f587f26da834d3056ee8733c397e024145ca7d2a8a96bb71ac281")
add_versions("9.1.0", "cceb4cb9366e18a5742128cb3524ce5f50e88b476f1e54737a47ffdf4df4c996")
add_versions("9.0.0", "fc96dd2d2fdf2bded630787adba892c23cb9e35c6fd3273c136b0c57d4651ad6")
add_versions("8.1.1", "23778bad8edba12d76e4075da06db591f3b0e3c6c04928ced4a7282ca3400e5d")
@ -16,7 +17,6 @@ package("fmt")
add_configs("header_only", {description = "Use header only version.", default = false, type = "boolean"})
if is_plat("mingw") and is_subhost("msys") then
add_extsources("pacman::fmt")
elseif is_plat("linux") then
@ -32,7 +32,12 @@ package("fmt")
package:add("deps", "cmake")
end
if package:config("shared") then
package:add("defines", "FMT_EXPORT")
local version = package:version()
if version and version:ge("10") then
package:add("defines", "FMT_LIB_EXPORT")
else
package:add("defines", "FMT_EXPORT")
end
end
end)

Loading…
Cancel
Save