Auto-update toml11 to v3.8.1 (#3213)

* Update toml11 to v3.8.1

* add CMAKE_CXX_STANDARD

---------

Co-authored-by: star9029 <hengxings783@gmail.com>
pull/3219/head
ruki 1 year ago committed by GitHub
parent 4ee1b00ad5
commit 9a2510b2c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/t/toml11/xmake.lua

@ -6,12 +6,14 @@ package("toml11")
add_urls("https://github.com/ToruNiina/toml11/archive/refs/tags/$(version).tar.gz",
"https://github.com/ToruNiina/toml11.git")
add_versions("v3.8.1", "6a3d20080ecca5ea42102c078d3415bef80920f6c4ea2258e87572876af77849")
add_versions("v3.7.0", "a0b6bec77c0e418eea7d270a4437510884f2fe8f61e7ab121729624f04c4b58e")
add_deps("cmake")
on_install(function (package)
local configs = {}
local configs = {"-DCMAKE_CXX_STANDARD=11"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)

Loading…
Cancel
Save