Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix committed May 1, 2024
1 parent b6ceaee commit 22f49aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test-repo/packages/p/python/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,18 @@ package("python")
for _, linkdir in ipairs(openssl.linkdirs) do
if path.filename(linkdir) == "lib" then
openssl_dir = path.directory(linkdir)
if openssl_dir then
break
else
-- try to find if linkdir is root (brew has linkdir as root and includedirs inside)
for _, includedir in ipairs(openssl.sysincludedirs or openssl.includedirs) do
if includedir:startswith(linkdir) then
openssl_dir = linkdir
break
end
end
end
if openssl_dir then
break
end
end
end
print("openssl_dir")
Expand Down

0 comments on commit 22f49aa

Please sign in to comment.