Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't install embedded copy of GTest #1171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhilMiller
Copy link

@PhilMiller PhilMiller commented Feb 7, 2023

Google Test itself documents the INSTALL_GTEST option as something that projects embedding it should set to OFF. Leaving it on means that projects downstream from libraries that embed it are likely to encounter conflicting copies. This is particularly annoying because GTest does not maintain anything like a stable API, and so causes builds to fail if include paths pick up an inappropriately installed copy ahead of the one that the code wanted.

Fixes #488

Goole Test itself documents the `INSTALL_GTEST` option as something that projects embedding it should set to `OFF`. Leaving it on means that projects downstream from libraries that embed it are likely to encounter conflicting copies. This is particularly annoying because GTest does not maintain anything like a stable API, and so causes builds to fail if include paths pick up an inappropriately installed copy ahead of the one that the code wanted.

Fixes jbeder#488
@nigels-com
Copy link

Looks good.

@ahogen
Copy link

ahogen commented Jun 29, 2024

Related, but maybe out of scope for this MR -- this project's documentation generator is recursing into the GoogleTest directories and publishing its docs. Things like GoogleTest's own "how to contribute" type docs are being shown in this project. Took me a sec to realize what was going on. Rather confusing.

https://codedocs.xyz/jbeder/yaml-cpp/pages.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedding of gtest/gmock in source tree
3 participants