Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Jul 13, 2024
1 parent 46b9066 commit 343c3a4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/g/glaze/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package("glaze")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/stephenberry/glaze")
set_description("Extremely fast, in memory, JSON and interface library for modern C++")
set_license("MIT")

add_urls("https://github.com/stephenberry/glaze/archive/refs/tags/$(version).tar.gz",
"https://github.com/stephenberry/glaze.git")
Expand All @@ -16,8 +17,18 @@ package("glaze")
add_versions("v2.2.0", "1d6e36029a58bf8c4bdd035819e1ab02b87d8454dd80fa2f5d46c96a1e6d600c")
add_versions("v1.3.5", "de5d59cb7f31193d45f67f25d8ced1499df50c0d926a1461432b87f2b2368817")

add_deps("cmake")

on_install(function (package)
os.cp("include", package:installdir())
local version = package:version()
if version and version:ge("2.9.5") then
if package:has_tool("cxx", "cl", "clang_cl") then
package:add("cxxflags", "/Zc:preprocessor", "/permissive-", "/Zc:lambda")
end
import("package.tools.cmake").install(package, {"-Dglaze_DEVELOPER_MODE=OFF"})
else
os.cp("include", package:installdir())
end
end)

on_test(function (package)
Expand Down

0 comments on commit 343c3a4

Please sign in to comment.