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

pull/1449/head
Talha Saruhan 3 years ago committed by GitHub
parent d1e05c4dec
commit c60280e510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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>

Loading…
Cancel
Save