Fix tests.

As we use the main library of gtest (if already installed)
we don't need to (and must not) define a main function for the tests.

Does the same (use main library) if we use the subproject.
This commit is contained in:
Matthieu Gautier
2020-01-20 17:00:18 +01:00
parent 0f99c1ad20
commit 4fe31a20e3
8 changed files with 1 additions and 40 deletions

View File

@ -13,7 +13,7 @@ tests = [
gtest_dep = dependency('gtest',
main:true,
fallback: ['gtest', 'gtest_dep'],
fallback: ['gtest', 'gtest_main_dep'],
required:false)
if gtest_dep.found()