Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jul 15, 2024
1 parent f4e9a1f commit 4c19629
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions packages/f/fmt/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package("fmt")
add_versions("10.1.0", "d725fa83a8b57a3cedf238828fa6b167f963041e8f9f7327649bddc68ae316f4")
add_versions("10.0.0", "4943cb165f3f587f26da834d3056ee8733c397e024145ca7d2a8a96bb71ac281")
add_versions("9.1.0", "cceb4cb9366e18a5742128cb3524ce5f50e88b476f1e54737a47ffdf4df4c996")
add_versions("9.0.0", "fc96dd2d2fdf2bded630787adba892c23cb9e35c6fd3273c136b0c57d4651ad6")
add_versions("9.0.0", "fc96dd2d2fdf2bded630787adba892c23cb9e35c6fd3273c136b0c57d4651ad6")
add_versions("8.1.1", "23778bad8edba12d76e4075da06db591f3b0e3c6c04928ced4a7282ca3400e5d")
add_versions("8.0.1", "a627a56eab9554fc1e5dd9a623d0768583b3a383ff70a4312ba68f94c9d415bf")
add_versions("8.0.0", "36016a75dd6e0a9c1c7df5edb98c93a3e77dabcf122de364116efb9f23c6954a")
Expand All @@ -22,9 +22,7 @@ package("fmt")
add_versions("6.0.0", "b4a16b38fa171f15dbfb958b02da9bbef2c482debadf64ac81ec61b5ac422440")
add_versions("5.3.0", "4c0741e10183f75d7d6f730b8708a99b329b2f942dad5a9da3385ab92bb4a15c")

add_patches("10.1.0",
path.join(os.scriptdir(), "patches", "10.1.0", "utf8.patch" ),
"3280569bced9ec08933f0ea37b6a4fef4538944d9046fe197ad63e22d1357cd4")
add_patches("10.1.0", "patches/10.1.0/utf8.patch", "3280569bced9ec08933f0ea37b6a4fef4538944d9046fe197ad63e22d1357cd4")

add_configs("header_only", {description = "Use header only version.", default = false, type = "boolean"})
add_configs("unicode", {description = "Enable Unicode support.", default = true, type = "boolean"})
Expand All @@ -40,6 +38,7 @@ package("fmt")
on_load(function (package)
if package:config("header_only") then
package:add("defines", "FMT_HEADER_ONLY=1")
package:set("kind", "library", {headeronly = true})
else
package:add("deps", "cmake")
end
Expand Down
5 changes: 3 additions & 2 deletions packages/s/spdlog/xmake.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package("spdlog")

set_homepage("https://github.com/gabime/spdlog")
set_description("Fast C++ logging library.")
set_license("MIT")
Expand Down Expand Up @@ -39,7 +38,9 @@ package("spdlog")
end

on_load(function (package)
if not package:config("header_only") then
if package:config("header_only") then
package:set("kind", "library", {headeronly = true})
else
package:add("defines", "SPDLOG_COMPILED_LIB")
package:add("deps", "cmake")
end
Expand Down

0 comments on commit 4c19629

Please sign in to comment.