Skip to content

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

Merged
parrt merged 1 commit into
antlr:devfrom
0xENDER:patch-2
May 24, 2025
Merged

Fix a CMake v4.0.0 build error (related to googletest)#4808
parrt merged 1 commit into
antlr:devfrom
0xENDER:patch-2

Conversation

@0xENDER

@0xENDER 0xENDER commented Mar 29, 2025

Copy link
Copy Markdown
Contributor

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 <72353925+0xENDER@users.noreply.github.com>
@kaby76

kaby76 commented Apr 3, 2025

Copy link
Copy Markdown
Contributor

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

@hamidelmaazouz hamidelmaazouz left a comment

Copy link
Copy Markdown

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

0xENDER commented May 24, 2025

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
Contributor

@parrt blessed

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

Copy link
Copy Markdown

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

martinjonas pushed a commit to martinjonas/Q3B that referenced this pull request Sep 17, 2025
This is a temporary workaround for antlr/antlr4#4808
until a new release of ANTLR is released.
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