浏览代码

OpenEXR: fixed wrong includepaths (#4725)

* OpenEXR: fixed wrong includepaths

* Update xmake.lua

---------

Co-authored-by: ruki <[email protected]>
Andrey Viktorov 1 年之前
父节点
当前提交
2d383279a7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/o/openexr/xmake.lua

+ 3 - 1
packages/o/openexr/xmake.lua

@@ -23,6 +23,8 @@ package("openexr")
 
 
     add_configs("build_both", {description = "Build both static library and shared library. (deprecated)", default = false, type = "boolean"})
     add_configs("build_both", {description = "Build both static library and shared library. (deprecated)", default = false, type = "boolean"})
 
 
+    add_includedirs("include/OpenEXR", "include")
+
     on_load("windows", "macosx", "linux", "mingw@windows", "mingw@msys", function (package)
     on_load("windows", "macosx", "linux", "mingw@windows", "mingw@msys", function (package)
         local ver = package:version()
         local ver = package:version()
         local suffix = format("-%d_%d", ver:major(), ver:minor())
         local suffix = format("-%d_%d", ver:major(), ver:minor())
@@ -41,7 +43,7 @@ package("openexr")
         end
         end
     end)
     end)
 
 
-    on_install("macosx", "linux", "windows", "mingw@windows", "mingw@msys", function (package)
+    on_install("macosx", "linux", "windows|x64", "windows|x86", "mingw@windows", "mingw@msys", function (package)
         local configs = {"-DBUILD_TESTING=OFF", "-DINSTALL_OPENEXR_EXAMPLES=OFF", "-DINSTALL_OPENEXR_DOCS=OFF", "-DOPENEXR_BUILD_UTILS=ON"}
         local configs = {"-DBUILD_TESTING=OFF", "-DINSTALL_OPENEXR_EXAMPLES=OFF", "-DINSTALL_OPENEXR_DOCS=OFF", "-DOPENEXR_BUILD_UTILS=ON"}
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         if package:version():ge("3.0") then
         if package:version():ge("3.0") then