Skip to content

Fix a CMake v4.0.0 build error (related to googletest) #4808

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

Merged
merged 1 commit into from
May 24, 2025

Conversation

0xENDER
Copy link
Contributor

@0xENDER 0xENDER commented Mar 29, 2025

CMake version 4.0.0 doesn't support the currently used googletest CMake project version. As such, updating the project to the latest version makes sense.

(This closes #4807)

CMake version 4.0.0 doesn't support the currently used `googletest` CMake project version. As such, updating the project to the latest version makes sense.

Signed-off-by: 0xENDER <[email protected]>
@kaby76
Copy link
Contributor

kaby76 commented Apr 3, 2025

We are now seeing this in builds for grammars-v4 for Windows.

Copy link

@hamidelmaazouz hamidelmaazouz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question on the runtime tests, do they still pass after this change ?

@0xENDER
Copy link
Contributor Author

0xENDER commented May 24, 2025

I'd have to assume yes (since the GitHub tests didn't fail, and because of the way the Google tests repository is maintained with little importance to versioning)

@ericvergnaud
Copy link
Contributor

@parrt blessed

@parrt parrt merged commit 09d527f into antlr:dev May 24, 2025
42 checks passed
@0xENDER 0xENDER deleted the patch-2 branch May 24, 2025 20:37
@hamidelmaazouz
Copy link

yay ! thanks a lot @0xENDER @ericvergnaud and @parrt 😄

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

Successfully merging this pull request may close these issues.

antlr4 C++ runtime builds fail on cmake 4.0.0
5 participants