drogon: fix shared build for version >=1.8.0 (#5055)

* drogon: fix shared build for version >=1.8.0

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/5065/head
REMqb 6 months ago committed by GitHub
parent df3a58c388
commit 61bcf518b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      packages/d/drogon/xmake.lua

@ -99,7 +99,12 @@ package("drogon")
-- no support for windows shared library
if not package:is_plat("windows") then
table.insert(configs, "-DBUILD_DROGON_SHARED=" .. (package:config("shared") and "ON" or "OFF"))
local shared = package:config("shared") and "ON" or "OFF"
if version:ge("1.8.0") then
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. shared)
else
table.insert(configs, "-DBUILD_DROGON_SHARED=" .. shared)
end
end
for name, enabled in pairs(package:configs()) do

Loading…
Cancel
Save