Skip to content

Commit

Permalink
msgpack-cxx: move MSGPACK_NO_BOOST into on_load
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Jul 13, 2024
1 parent 9a08d69 commit ff44321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/m/msgpack-cxx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ package("msgpack-cxx")

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"})
add_configs("boost", {description = "Use Boost", default = false, type = "boolean"})

add_deps("cmake")

add_defines("MSGPACK_NO_BOOST")

on_load(function (package)
if package:config("boost") then
package:add("deps", "boost")
else
package:add("defines", "MSGPACK_NO_BOOST")
end
end)

Expand Down

0 comments on commit ff44321

Please sign in to comment.