Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 381363d

Browse files
committed
build/meson: auto disable benchmarks if in a subproject
1 parent cb075ba commit 381363d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ subdir(
141141
if_found: [gtest_dep, fmt_dep],
142142
)
143143

144-
benchmarks = get_option('benchmarks')
144+
benchmarks = get_option('benchmarks').disable_auto_if(meson.is_subproject())
145145
benchmark_dep = dependency(
146146
'benchmark_main',
147147
required: benchmarks,

0 commit comments

Comments
 (0)