diff --git a/packages/d/drogon/xmake.lua b/packages/d/drogon/xmake.lua index 2333a436d..2c023a84a 100644 --- a/packages/d/drogon/xmake.lua +++ b/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