fix has_tool for fmt (#4942)

pull/4946/head
ruki 3 months ago committed by GitHub
parent 6c8adde56b
commit 9086e3f102
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/f/fmt/xmake.lua

@ -52,12 +52,12 @@ package("fmt")
package:add("defines", "FMT_EXPORT") package:add("defines", "FMT_EXPORT")
end end
end end
if package:has_tool("cxx", "cl") and package:config("unicode") then
package:add("cxxflags", "/utf-8")
end
end) end)
on_install(function (package) on_install(function (package)
if package:has_tool("cxx", "cl") and package:config("unicode") then
package:add("cxxflags", "/utf-8")
end
if package:config("header_only") then if package:config("header_only") then
os.cp("include/fmt", package:installdir("include")) os.cp("include/fmt", package:installdir("include"))
return return

Loading…
Cancel
Save