浏览代码

fix drogon again

ruki 4 年之前
父节点
当前提交
c677a0cfb7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      packages/d/drogon/xmake.lua

+ 3 - 0
packages/d/drogon/xmake.lua

@@ -36,6 +36,9 @@ package("drogon")
         if not package:is_plat("windows") then
             table.insert(configs, "-DBUILD_DROGON_SHARED=" .. (package:config("shared") and "ON" or "OFF"))
         end
+        if not package:dep("postgresql"):fetch() then
+            table.insert(configs, "-DBUILD_POSTGRESQL=OFF")
+        end
         if package:config("pic") ~= false then
             table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
         end