summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build
index 25561f2ee..e6cb1cfb1 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -22,8 +22,9 @@ if compiler.get_id() == 'clang' and compiler.version().version_compare('>=9')
]
endif
+gtest_main_dep = dependency('gtest', main: true, fallback: ['gtest', 'gtest_main_dep'])
gtest_dep = declare_dependency(
- dependencies: [dependency('gtest', main: true)],
+ dependencies: [gtest_main_dep],
compile_args: gtest_compile_args,
)