Browse Source

add all config for boost

ruki 4 years ago
parent
commit
cb01098839
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/b/boost/xmake.lua

+ 2 - 1
packages/b/boost/xmake.lua

@@ -44,6 +44,7 @@ package("boost")
                       "iostreams",
                       "program_options"}
 
+    add_configs("all",          { description = "Enable all library modules support.",  default = false, type = "boolean"})
     add_configs("multi",        { description = "Enable multi-thread support.",  default = true, type = "boolean"})
     for _, libname in ipairs(libnames) do
         add_configs(libname,    { description = "Enable " .. libname .. " library.", default = (libname == "filesystem"), type = "boolean"})
@@ -146,7 +147,7 @@ package("boost")
             end
         end
         for _, libname in ipairs(libnames) do
-            if package:config(libname) then
+            if package:config("all") or package:config(libname) then
                 table.insert(argv, "--with-" .. libname)
             end
         end