From 30daafef25e3bdda5f1faa0196a699b6146330a9 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 11 Oct 2020 22:38:20 +0800 Subject: [PATCH] fix gtest for linux --- packages/g/gtest/xmake.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/g/gtest/xmake.lua b/packages/g/gtest/xmake.lua index 3170454d9..41dbee113 100644 --- a/packages/g/gtest/xmake.lua +++ b/packages/g/gtest/xmake.lua @@ -8,6 +8,10 @@ package("gtest") add_versions("github:1.8.1", "release-1.8.1") add_versions("archive:1.8.1", "927827c183d01734cc5cfef85e0ff3f5a92ffe6188e0d18e909c5efebf28a0c7") + if is_plat("linux") then + add_syslinks("pthread") + end + on_install(function (package) io.writefile("xmake.lua", [[ target("gtest")