浏览代码

improve openexr binary integration

xq114 4 年之前
父节点
当前提交
a0ede81282
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      packages/o/openexr/xmake.lua

+ 2 - 5
packages/o/openexr/xmake.lua

@@ -26,11 +26,8 @@ package("openexr")
         end
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DPYILMBASE_ENABLE=" .. "OFF")
-        import("package.tools.cmake").install(package, configs)
-        for _, name in ipairs(os.dirs(os.curdir() .. "/build_*")) do
-            os.cp(name .. "/install/bin", package:installdir())
-            break
-        end
+        import("package.tools.cmake").install(package, configs, {buildir = "build"})
+        os.cp("build/install/bin", package:installdir())
         package:addenv("PATH", "bin")
     end)