Skip to content

Commit bf699b1

Browse files
committed
update
1 parent 0be21ee commit bf699b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/o/opencv/xmake.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ package("opencv")
240240
end
241241
import("package.tools.cmake").install(package, configs, {builddir = "bd", shflags = shflags, ldflags = ldflags})
242242

243-
if package:is_plat("linux", "macosx") then
243+
if not package:is_plat("windows", "android") then
244244
io.replace(package:installdir("lib/cmake/opencv4/OpenCVModules.cmake"),
245-
"opencv_wechat_qrcode\n",
246-
"opencv_wechat_qrcode\ninclude(CMakeFindDependencyMacro)\nfind_dependency(Iconv)\n", {plain = true})
245+
"opencv_wechat_qrcode\n",
246+
"opencv_wechat_qrcode\ninclude(CMakeFindDependencyMacro)\nfind_dependency(Iconv)\n", {plain = true})
247247
end
248248
for _, link in ipairs({"opencv_phase_unwrapping", "opencv_surface_matching", "opencv_saliency",
249249
"opencv_wechat_qrcode", "opencv_mcc", "opencv_face",

0 commit comments

Comments
 (0)