GoogleTest is fetched with its install rules enabled, so cmake --install drops libgtest*, libgmock* and their headers and CMake config into the consumer's prefix.
Fix
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) before FetchContent_MakeAvailable(googletest). The install-and-consume CI job from the tmech packaging issue would catch a regression.
All references are to main at 91bd26f.
GoogleTest is fetched with its install rules enabled, so
cmake --installdropslibgtest*,libgmock*and their headers and CMake config into the consumer's prefix.Fix
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)beforeFetchContent_MakeAvailable(googletest). The install-and-consume CI job from the tmech packaging issue would catch a regression.All references are to
mainat 91bd26f.