Explorar el Código

Update xmake.lua

ruki hace 4 años
padre
commit
37fa5833b5
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      packages/o/opencv/xmake.lua

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

@@ -17,8 +17,6 @@ package("opencv")
 
     add_configs("bundled", {description = "Build 3rd-party libraries with OpenCV.", default = true, type = "boolean"})
 
-    add_deps("cmake", "python 3.x", {kind = "binary"})
-
     local features = {"1394",
                       "vtk",
                       "eigen",
@@ -85,6 +83,9 @@ package("opencv")
         if package:config("cuda") then
             package:add("deps", "cuda", {system = true, configs = {utils = {"cudnn", "cufft", "cublas"}}})
         end
+        if not package.is_built or package:is_built() then
+            package:add("deps", "cmake", "python 3.x", {kind = "binary"})
+        end
     end)
 
     on_install("linux", "macosx", "windows", function (package)