Skip to content

Commit

Permalink
aws-c-cal: fix android
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Oct 12, 2024
1 parent cf6b3f8 commit ce6f480
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/a/aws-c-cal/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ package("aws-c-cal")
on_install("!wasm and (!mingw or mingw|!i386)", function (package)
local cmakedir = path.unix(package:dep("aws-c-common"):installdir("lib", "cmake"))

local configs = {"-DBUILD_TESTING=OFF", "-DCMAKE_MODULE_PATH=" .. cmakedir}
local configs = {
"-DBUILD_TESTING=OFF",
"-DCMAKE_POLICY_DEFAULT_CMP0057=NEW",
"-DCMAKE_MODULE_PATH=" .. cmakedir,
}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DENABLE_SANITIZERS=" .. (package:config("asan") and "ON" or "OFF"))
Expand Down

0 comments on commit ce6f480

Please sign in to comment.