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

[FR]: FetchContent on googletest subfolder #4467

Closed
LecrisUT opened this issue Feb 15, 2024 · 1 comment
Closed

[FR]: FetchContent on googletest subfolder #4467

LecrisUT opened this issue Feb 15, 2024 · 1 comment

Comments

@LecrisUT
Copy link

Does the feature exist in the most recent commit?

No

Why do we need this feature?

Avoid building with gmock

Describe the proposal.

Let's say we want to consume gtest as:

FetchContent_Declare(GTest
		GIT_REPOSITORY https://github.com/google/googletest
		GIT_TAG v1.14.0
		SOURCE_SUBDIR googletest
		FIND_PACKAGE_ARGS CONFIG
)

This fails because GOOGLETEST_VERSION is only defined in top level cmakelists. This means the that the gtest is not independently buildable

Is the feature specific to an operating system, compiler, or build system version?

Build system: CMake + FetchContent

@derekmauro
Copy link
Member

Duplicate of #4309.

@derekmauro derekmauro closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
@LecrisUT LecrisUT changed the title [FR]: FetchContetn on googletest subfolder [FR]: FetchContent on googletest subfolder Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants