Skip to content

Commit

Permalink
msgpack-cxx: add requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Jul 14, 2024
1 parent db0f2b8 commit 58470df
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/m/msgpack-cxx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ package("msgpack-cxx")
add_configs("boost", {description = "Use Boost", default = is_plat("macosx", "linux", "windows", "bsd", "mingw", "cross"), type = "boolean"})

on_load(function (package)
if not package:config("header_only") then
if package:config("header_only") then
package:set("kind", "library", {headeronly = true})
else
package:add("deps", "cmake")
end
if package:config("boost") then
package:add("deps", "boost")
else
package:add("defines", "MSGPACK_NO_BOOST")
end
if not (package:config("boost") and not package:config("header_only")) then
package:set("kind", "library", {headeronly = true})
end
end)

on_install(function (package)
Expand Down

0 comments on commit 58470df

Please sign in to comment.