summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-17 00:45:39 +0800
committerruki <[email protected]>2025-01-17 00:45:39 +0800
commitdd67d6e202054e15e59d799ab196fc6f7223ac24 (patch)
treebb1f0e1a9696ecb3e9e6d9aa459b6b5d585d3daf /xmake/modules
parent094dad87ea83ba581f320be63552bc7930a1f554 (diff)
improve to nuget/find_package #6082
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/package/manager/nuget/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/nuget/find_package.lua b/xmake/modules/package/manager/nuget/find_package.lua
index 5af474c69..5521f0bec 100644
--- a/xmake/modules/package/manager/nuget/find_package.lua
+++ b/xmake/modules/package/manager/nuget/find_package.lua
@@ -82,7 +82,7 @@ function _find_package(name, result, opt)
file = file:trim()
-- get includedirs
- if file:find("/include/", 1, true) then
+ if file:find("/include/", 1, true) or file:startswith("include/") then
result.includedirs = result.includedirs or {}
table.insert(result.includedirs, path.join(installdir, "include"))
end