summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-30 10:12:19 +0300
committerSaikari <[email protected]>2026-01-30 10:12:19 +0300
commitb32c1a47791a21919bae96a9e5dffe12f044615e (patch)
treefee4aadc0e764e74939bafa61fa52d2aa8645a2e
parentbe12d7fdddf16b8b501b9fcbce53b6f5d5173c98 (diff)
fix: update dependency check to use is_headeronly method
-rw-r--r--xmake/rules/nim/build/target.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/nim/build/target.lua b/xmake/rules/nim/build/target.lua
index 181d3dc2a..dd12c8ae7 100644
--- a/xmake/rules/nim/build/target.lua
+++ b/xmake/rules/nim/build/target.lua
@@ -143,7 +143,7 @@ function _add_dependency_flags(target, compinst, compflags)
-- we need pass includedirs of static/shared lib to the target
local includedirs = {}
for _, dep in ipairs(target:orderdeps()) do
- if dep:kind() == "static" or dep:kind() == "shared" or dep:kind() == "headeronly" then
+ if dep:kind() == "static" or dep:kind() == "shared" or dep:is_headeronly() then
table.join2(includedirs, table.wrap(dep:get("includedirs")))
table.join2(includedirs, table.wrap(dep:get("sysincludedirs")))
end