Browse Source

fix gtest for linux

ruki 5 năm trước cách đây
mục cha
commit
30daafef25
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      packages/g/gtest/xmake.lua

+ 4 - 0
packages/g/gtest/xmake.lua

@@ -8,6 +8,10 @@ package("gtest")
     add_versions("github:1.8.1", "release-1.8.1")
     add_versions("github:1.8.1", "release-1.8.1")
     add_versions("archive:1.8.1", "927827c183d01734cc5cfef85e0ff3f5a92ffe6188e0d18e909c5efebf28a0c7")
     add_versions("archive:1.8.1", "927827c183d01734cc5cfef85e0ff3f5a92ffe6188e0d18e909c5efebf28a0c7")
 
 
+    if is_plat("linux") then
+        add_syslinks("pthread")
+    end
+
     on_install(function (package)
     on_install(function (package)
         io.writefile("xmake.lua", [[
         io.writefile("xmake.lua", [[
             target("gtest")
             target("gtest")