ormpp: fix config (#3184)

* ormpp: fix config

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/3187/head
KkemChen 1 year ago committed by GitHub
parent 9093437e63
commit c7eba7cd9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/o/ormpp/xmake.lua

@ -12,13 +12,13 @@ package("ormpp")
add_configs("mysql", {description = "Using mysql", default = false, type = "boolean"})
add_configs("postgresql", {description = "Using postgresql", default = false, type = "boolean"})
add_configs("sqlite", {description = "Using sqlite", default = false, type = "boolean"})
add_configs("sqlite3", {description = "Using sqlite3", default = false, type = "boolean"})
on_load("windows", "macosx", "linux", function(package)
local configs = {
mysql = "ORMPP_ENABLE_MYSQL",
postgresql = "ORMPP_ENABLE_PG",
sqlite = "ORMPP_ENABLE_SQLITE3"
sqlite3 = "ORMPP_ENABLE_SQLITE3"
}
for config, define in pairs(configs) do

Loading…
Cancel
Save