Closed jgsogo closed 6 years ago
Thanks for the report and feedback!
I currently poke into the internal_utils.cmake
file only because when I compile with no exceptions and such, as far as I understand gtest needs to be compiled with the same compiler flags as the tests themselves.
I don't think I understand exactly what the gtest_main
/ gtest
problem is. Could you elaborate?
My plan ultimately is to switch over to use Catch2
rather than gtest
.
About gtest_main
/gtest
:
In googletest
sources here:
cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
and watching the sources, gtest
is the library itself and gtest_main
is more like the executable (see source for gtest_main.cc
).
I think I'll ditch gtest all-together shortly. Could you keep the workarounds for now and remove them once I ditch gtest?
Yes, of course. Just ping me when you release the new version.
Thanks!
@jgsogo: Closing for now. Will ping when I get around to ditching gtest.
Hi!
I'm trying to package this library (v1.3.0) using conan.io, you can see my ongoing work in this repo and I want to share with you some issues I'm facing, just in case you have an opinion about them.
As the idea is to work with packaged dependencies, I am not using the
3rdparty
directory with the submodules but thegtest
package provided by bincrafters (release-v1.8.0). Two comments when using this packaged library:internal_utils.cmake
is not packaged, so the function that is used here won't work. I've created anothergtest
package that export this file and included it, but I'm wondering if this file is intended to be used by packages depending on googletests or if it is just an internal one.gtest_main
here I have to link also againstgtest
, I've to check which one is the correct one.If you are interested on having this library packaged with conan, I can work further on this and create a PR, otherwise I will keep using these workarounds.
PD.- btw, I came to your library following the dependencies being used by spdlog_setup.