Skip to content

Commit

Permalink
fix: fix build under win & macosx.
Browse files Browse the repository at this point in the history
  • Loading branch information
epicbigcat committed Dec 15, 2024
1 parent 4ff930c commit 3f529a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
add_rules('mode.debug', 'mode.release')

if is_plat('linux', 'macosx') then
if is_plat('linux') then
set_toolchains('zig')
add_requireconfs('**', { system = false })

add_requireconfs('cpr', {configs = {ssl = true}})
add_requireconfs('cpr.libcurl', {configs = {openssl = true}})
end

add_requires('argparse 3.1')
add_requires('spdlog 1.14.1')
add_requires('nlohmann_json 3.11.3')
add_requires('cpr 1.11.1', {configs = {ssl = true}})

add_requireconfs('cpr.libcurl', {configs = {openssl = true}})
add_requires('cpr 1.11.1')

target('allay')
set_kind('binary')
Expand Down

0 comments on commit 3f529a7

Please sign in to comment.