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