Sfoglia il codice sorgente

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

Talha Saruhan 2 anni fa
parent
commit
c60280e510
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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>