Browse Source

version match

Darcy Shen 1 năm trước cách đây
mục cha
commit
991f341a12
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      packages/l/libgit2/xmake.lua

+ 3 - 1
packages/l/libgit2/xmake.lua

@@ -41,7 +41,9 @@ package("libgit2")
                 table.insert(configs, "-DSTATIC_CRT=OFF")
                 table.insert(configs, "-DSTATIC_CRT=OFF")
             end
             end
             io.replace("CMakeLists.txt", "/GL", "", {plain = true})
             io.replace("CMakeLists.txt", "/GL", "", {plain = true})
-            io.replace("cmake/DefaultCFlags.cmake", "/GL", "", {plain = true}) -- for 1.7.1
+            if package:version():eq("1.7.1") then
+                io.replace("cmake/DefaultCFlags.cmake", "/GL", "", {plain = true})
+            end
         end
         end
         import("package.tools.cmake").install(package, configs)
         import("package.tools.cmake").install(package, configs)
     end)
     end)