소스 검색

Fixed "debug=true" and "vs_runtime="MTd" builds (#1448)

Talha Saruhan 3 년 전
부모
커밋
c60280e510
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/o/opencv/xmake.lua

+ 2 - 1
packages/o/opencv/xmake.lua

@@ -151,6 +151,7 @@ package("opencv")
             if package:is_plat("windows", "mingw") then
                 reallink = reallink .. package:version():gsub("%.", "")
             end
+            reallink = reallink .. (package:debug() and "d" or "")
             if xmake.version():le("2.5.7") and package:is_plat("mingw") and package:config("shared") then
                 reallink = reallink .. ".dll"
             end
@@ -202,7 +203,7 @@ package("opencv")
             runtest = false
         end
         if runtest then
-            os.vrun("opencv_version")
+            os.vrun((package:debug() and "opencv_versiond" or "opencv_version"))
         end
         assert(package:check_cxxsnippets({test = [[
             #include <iostream>