google / google/googletest

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

Open
#3,783 1 comment 0 reactions 1 assignee Claimed by @CJ-Johnson View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.