* The path of the dll file is specified wrong * modify poco default link mysql name * only static lib should replace * delete poco default lib name * Update xmake.lua
@@ -78,7 +78,7 @@ package("mysql")
os.cp(package:installdir("lib/libmysql.dll"), package:installdir("bin"))
else
os.rm(package:installdir("lib/libmysql.lib"))
- os.rm(package:installdir("bin/libmysql.dll"))
+ os.rm(package:installdir("lib/libmysql.dll"))
end
end)
@@ -71,6 +71,7 @@ package("poco")
if package:config("mysql") then
+ io.replace("Data/MySQL/include/Poco/Data/MySQL/MySQL.h", '#pragma comment(lib, "libmysql")', '', {plain = true})
local libmysql = package:dep("mysql"):fetch()
if libmysql then
table.insert(configs, "-DMYSQL_INCLUDE_DIR=" .. table.concat(libmysql.includedirs or libmysql.sysincludedirs, ";"))