fix benchmark (#469)

pull/470/head
ruki 3 years ago committed by GitHub
parent c577925b0f
commit 6d6113cf39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/b/benchmark/xmake.lua

@ -6,6 +6,7 @@ package("benchmark")
add_urls("https://github.com/google/benchmark/archive/v$(version).tar.gz",
"https://github.com/google/benchmark.git")
add_versions("1.5.2", "dccbdab796baa1043f04982147e67bb6e118fe610da2c65f88912d73987e700c")
add_versions("1.5.5", "3bff5f237c317ddfd8d5a9b96b3eede7c0802e799db520d38ce756a2a46a18a0")
if is_plat("linux") then
add_syslinks("pthread")
@ -13,6 +14,8 @@ package("benchmark")
add_syslinks("shlwapi")
end
add_deps("cmake")
on_install("macosx", "linux", "windows", function (package)
local configs = {"-DBENCHMARK_ENABLE_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))

Loading…
Cancel
Save