Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Feb 16, 2025
1 parent 2c3200b commit 5c08d91
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/c/cpr/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ package("cpr")
end
add_links("cpr")

if on_check then
on_check(function (target)
-- Require to fIX cmake try run
if package:version() and package:version():eq("1.6.2") then
if package:is_cross() then
raise("package(cpr 1.6.2) unsupported cross-compilation")
end
end
end)
end

on_load(function (package)
if package:config("ssl") then
package:add("deps", "libcurl", {configs = {libssh2 = true, zlib = true}})
Expand Down

0 comments on commit 5c08d91

Please sign in to comment.