Browse Source

fix libigl on windows (#6172)

Inari0 7 months ago
parent
commit
f06c542d49
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/l/libigl/xmake.lua

+ 1 - 0
packages/l/libigl/xmake.lua

@@ -19,6 +19,7 @@ package("libigl")
     add_configs("embree", {description = "Use embree library.", default = false, type = "boolean"})
     add_configs("embree", {description = "Use embree library.", default = false, type = "boolean"})
 
 
     if is_plat("windows") then
     if is_plat("windows") then
+        add_defines("NOMINMAX")
         add_syslinks("comdlg32")
         add_syslinks("comdlg32")
     elseif is_plat("linux") then
     elseif is_plat("linux") then
         add_syslinks("pthread")
         add_syslinks("pthread")