Skip to content

Commit

Permalink
msgpack-cxx: disable boost for unsupported plats
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Jul 14, 2024
1 parent ef09292 commit a31aa01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/m/msgpack-cxx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ package("msgpack-cxx")

add_configs("header_only", {description = "Use header only version.", default = false, type = "boolean"})
add_configs("std", {description = "Choose C++ standard version.", default = "cxx17", type = "string", values = {"cxx98", "cxx11", "cxx14", "cxx17", "cxx20"}})
add_configs("boost", {description = "Use Boost", default = true, type = "boolean"})
if is_plat("windows", "macosx", "linux", "mingw") then
add_configs("boost", {description = "Use Boost", default = true, type = "boolean"})
else
add_configs("boost", {description = "Use Boost", default = false, type = "boolean", readonly = true})
end

on_load(function (package)
if not package:config("header_only") then
Expand Down

0 comments on commit a31aa01

Please sign in to comment.