Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update xmake.lua
  • Loading branch information
star-hengxing authored Oct 28, 2025
commit c74cd6b3ae083e2a7499e22d757d3e2ae82d70b2
6 changes: 4 additions & 2 deletions packages/p/pangolin/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ package("pangolin")
end

for _, dep in ipairs(deps) do
if package:config(dep) then
table.insert(configs, format("-DBUILD_PANGOLIN_%s=%s", dep:upper(), (package:config(dep) and "ON" or "OFF")))
local name = dep
if dep == "openexr" then
name = "libopenexr"
end
table.insert(configs, format("-DBUILD_PANGOLIN_%s=%s", name:upper(), (package:config(dep) and "ON" or "OFF")))
end
table.insert(configs, "-DBUILD_TOOLS=" .. (package:config("tools") and "ON" or "OFF"))

Expand Down
Loading