Skip to content

Commit

Permalink
check old solution
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Dec 27, 2024
1 parent ab37339 commit b9bbb85
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/l/libmysofa/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ package("libmysofa")

on_install(function (package)
local configs = {"-DBUILD_TESTS=OFF"}
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DBUILD_STATIC_LIBS=" .. (package:config("shared") and "OFF" or "ON"))
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 b9bbb85

Please sign in to comment.