Skip to content

Commit a168332

Browse files
authored
Update find_package.lua
1 parent 94ff814 commit a168332

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xmake/modules/package/manager/cargo/find_package.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ function main(name, opt)
172172
end
173173
if names:has(libraryname) and not libraries_set[libraryname] then
174174
frameworks = frameworks or {}
175-
table.insert(frameworkdirs, path.directory(libraryfile))
176175
table.insert(frameworks, libraryfile)
177176
libraries_set[libraryname] = true
178177
end
@@ -181,7 +180,7 @@ function main(name, opt)
181180
if frameworks and frameworkdirs then
182181
result = result or {}
183182
result.libfiles = libfiles
184-
result.frameworkdirs = frameworkdirs and table.unique(frameworkdirs) or nil
183+
result.frameworkdirs = frameworkdirs
185184
result.frameworks = frameworks
186185
result.version = opt.require_version
187186
end

0 commit comments

Comments
 (0)