Skip to content

Commit 0be21ee

Browse files
committed
update
1 parent 9094e06 commit 0be21ee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/o/opencv/xmake.lua

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

243-
io.replace(package:installdir("lib/cmake/opencv4/OpenCVModules.cmake"),
244-
"opencv_wechat_qrcode\n",
245-
"opencv_wechat_qrcode\ninclude(CMakeFindDependencyMacro)\nfind_dependency(Iconv)\n", {plain = true})
243+
if package:is_plat("linux", "macosx") then
244+
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})
247+
end
246248
for _, link in ipairs({"opencv_phase_unwrapping", "opencv_surface_matching", "opencv_saliency",
247249
"opencv_wechat_qrcode", "opencv_mcc", "opencv_face",
248250
"opencv_img_hash", "opencv_videostab", "opencv_structured_light", "opencv_intensity_transform",

0 commit comments

Comments
 (0)