GTest doesn't install in a sensible location on Windows by default
rnichollx opened this issue · comments
Ryan Nicholl commented
The default install location:
C:/Program Files (x86)/googletest-distribution
Doesn't make sense.
When using find_package(GTest), CMake expects GTestConfig.cmake to be somewhere in C:/Program Files (x86)/GTest.
Renaming the main project command to GTest fixes this, but it seems there's a submodule as well. add_subdirectory should be considered harmful, it breaks a lot of cmake workflows.
I can provide a patch if needed.
CJ Johnson commented
Thank you for being open to providing a patch. We would be happy to review it!