update spdlog

pull/37/head
ruki 5 years ago
parent 724bb3cb2c
commit 7a46840bc6
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 8
      packages/s/spdlog/xmake.lua

@ -11,9 +11,9 @@ package("spdlog")
add_deps("cmake")
add_configs("header_only", {description = "Use header only", default = true, type = "boolean"})
add_configs("fmt_external", {description = "Use external fmt library instead of bundled", default = false, type = "boolean"})
add_configs("noexcept", {description = "Compile with -fno-exceptions. Call abort() on any spdlog exceptions", default = false, type = "boolean"})
add_configs("header_only", { description = "Use header only", default = true, type = "boolean"})
add_configs("fmt_external", { description = "Use external fmt library instead of bundled", default = false, type = "boolean"})
add_configs("noexcept", { description = "Compile with -fno-exceptions. Call abort() on any spdlog exceptions", default = false, type = "boolean"})
on_load(function (package)
if not package:config("header_only") then
@ -32,7 +32,7 @@ package("spdlog")
local configs = {}
if package:config("shared") and is_plat("windows") then
print("spdlog shared lib is not yet supported under windows")
raise("spdlog shared lib is not yet supported under windows!")
end
table.insert(configs, "-DSPDLOG_BUILD_SHARED=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DSPDLOG_FMT_EXTERNAL=" .. (package:config("fmt_external") and "ON" or "OFF"))

Loading…
Cancel
Save