I tried using the #75 pr from @lucasmitrik, but in my rolling arch release, the system gtest was incompatible and got a lot of errors.
This significantly increases build time, but keeps the test dependencies pinned to whatever is in the source files, and I think should increase portability in general.
Rather than using
find_library
, point it to subdirectory and build.as mentioned here: https://github.com/google/googletest/tree/master/googletest#incorporating-into-an-existing-cmake-project
I tried using the #75 pr from @lucasmitrik, but in my rolling arch release, the system gtest was incompatible and got a lot of errors.
This significantly increases build time, but keeps the test dependencies pinned to whatever is in the source files, and I think should increase portability in general.