Tools: disable Gtest and testing on Gbenchmark build

This commit is contained in:
Pierre Kancir 2020-09-02 23:50:06 +02:00 committed by Peter Barker
parent 37475e2b90
commit 9d9cf2501a
1 changed files with 2 additions and 3 deletions

View File

@ -47,6 +47,8 @@ def libbenchmark(bld):
cmake_vars=dict(
CMAKE_BUILD_TYPE='Release',
CMAKE_INSTALL_PREFIX=prefix_node.abspath(),
BENCHMARK_ENABLE_GTEST_TESTS='OFF',
BENCHMARK_ENABLE_TESTING='OFF',
),
)
@ -54,9 +56,6 @@ def libbenchmark(bld):
output_paths = (
'lib/libbenchmark.a',
'include/benchmark/benchmark.h',
'include/benchmark/macros.h',
'include/benchmark/benchmark_api.h',
'include/benchmark/reporter.h',
)
outputs = [prefix_node.make_node(path) for path in output_paths]
gbenchmark.build('install', target=outputs)