浏览代码

Add linux pacman add_extsources for fmt (#873)

Arthapz 3 年之前
父节点
当前提交
8fea26c2ce
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      packages/f/fmt/xmake.lua

+ 4 - 0
packages/f/fmt/xmake.lua

@@ -17,6 +17,10 @@ package("fmt")
         add_extsources("brew::fmt")
     end
 
+    if is_plat("linux") then
+        add_extsources("pacman::fmt")
+    end
+
     on_load(function (package)
         if package:config("header_only") then
             package:add("defines", "FMT_HEADER_ONLY=1")