GTest doesn't install in a sensible location on Windows by default
Open
bug
- Dominant language
- C++
- Stars
- 39.5k
- Forks
- 10.9k
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.