The tests builds the gtest library but does not install it.
If the compiler decides to create a shared gtest library this should be install it also.
we can do
set(BUILD_SHARED_LIBS OFF)
FetchContent_MakeAvailable(googletest)
forcing the compiler to build a static library.
or install the gtest library by removing set(INSTALL_GTEST OFF)
The tests builds the gtest library but does not install it.
If the compiler decides to create a shared gtest library this should be install it also.
we can do
forcing the compiler to build a static library.
or install the gtest library by removing
set(INSTALL_GTEST OFF)