Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Dec 27, 2024
1 parent 5150c11 commit b9ff099
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/l/libmysofa/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ package("libmysofa")

on_install(function (package)
local configs = {"-DBUILD_TESTS=OFF"}
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "OFF" or "ON"))
table.insert(configs, "-DBUILD_STATIC_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
if package:config("shared") then
table.insert(configs, "-DBUILD_STATIC_LIBS=ON")
table.insert(configs, "-DBUILD_SHARED_LIBS=OFF")
else
table.insert(configs, "-DBUILD_SHARED_LIBS=OFF")
end
import("package.tools.cmake").install(package, configs)
end)

Expand Down

0 comments on commit b9ff099

Please sign in to comment.