Closed ekilmer closed 3 years ago
Closing after reading this comment more thoroughly.
[...] we don't want to encourage people to use arbitrary system distributions of GTest [...]
Reopening after internal discussion of packaging use cases. Added a warning message about use of the option.
This only works on some of the latest releases of googletest, since previously the name passed to find_package was different.
Adding this is still better than not, since previously it will always fail if trying to compile tests with -DUSE_EXTERNAL_GTEST=ON
Renames
USE_SYSTEM_GTEST
toUSE_EXTERNAL_GTEST
, sinceGTest
could come from anywhere, not necessarily system-installed location.Improves upon #40