Skip to content

Commit 9086e3f

Browse files
authored
fix has_tool for fmt (#4942)
1 parent 6c8adde commit 9086e3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/f/fmt/xmake.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ package("fmt")
5252
package:add("defines", "FMT_EXPORT")
5353
end
5454
end
55-
if package:has_tool("cxx", "cl") and package:config("unicode") then
56-
package:add("cxxflags", "/utf-8")
57-
end
5855
end)
5956

6057
on_install(function (package)
58+
if package:has_tool("cxx", "cl") and package:config("unicode") then
59+
package:add("cxxflags", "/utf-8")
60+
end
6161
if package:config("header_only") then
6262
os.cp("include/fmt", package:installdir("include"))
6363
return

0 commit comments

Comments
 (0)