From f3788f25f6ff083f5a1846711914ce2334e8733a Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Wed, 22 Jan 2025 06:59:54 -0500 Subject: [PATCH] feat(tests/meson.build): added gtest dep without main function gtest can provide a main function but something this might conflict if you just want to use the comparison macros. Added a new variable in the meson build system gtest_nomain_dep which brings in the macros but not the main function. This can be linked against without having to worry about main function conflicts. --- tests/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/meson.build b/tests/meson.build index 5865cb7..4158df7 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,5 +1,6 @@ # Google Test dependency gtest_dep = dependency('gtest', main: true, required : true) +gtest_nomain_dep = dependency('gtest', main: false, required : true) # Subdirectories for unit and integration tests subdir('dobj')