google / googletest

GoogleTest - Google Testing and Mocking Framework

Home Page:https://google.github.io/googletest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GTest doesn't install in a sensible location on Windows by default

rnichollx opened this issue · comments

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.

Thank you for being open to providing a patch. We would be happy to review it!