Fix bug when compiling opencv on macosx (#2666)

pull/2670/head
KnightJun 1 year ago committed by GitHub
parent d28425055b
commit 53ace8a8c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/o/opencv/xmake.lua

@ -130,6 +130,8 @@ package("opencv")
end
elseif package:is_plat("mingw") then
table.insert(configs, "-DCMAKE_SYSTEM_PROCESSOR=" .. (package:is_arch("x86_64") and "AMD64" or "i686"))
elseif package:is_plat("macosx") then
table.insert(configs, "-DCMAKE_SYSTEM_PROCESSOR=" .. (package:is_arch("x86_64") and "AMD64" or "ARM64"))
end
local resourcedir = package:resourcedir("opencv_contrib")
if resourcedir then

Loading…
Cancel
Save