Browse Source

fix drogon again

ruki 4 years ago
parent
commit
c677a0cfb7
1 changed files with 3 additions and 0 deletions
  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