Skip to content

bump CMake requirement to 3.25#120

Open
van800 wants to merge 1 commit into
godotengine:mainfrom
van800:cmake-version
Open

bump CMake requirement to 3.25#120
van800 wants to merge 1 commit into
godotengine:mainfrom
van800:cmake-version

Conversation

@van800
Copy link
Copy Markdown
Contributor

@van800 van800 commented May 25, 2026

@dsnopek
Copy link
Copy Markdown
Contributor

dsnopek commented May 25, 2026

@enetheru What do you think?

I don't know how important it is to support older versions of CMake. If it is important, then the other option is trying to not use these two features. Given my limited experience with CMake, I don't personally have an opinion either way

@van800
Copy link
Copy Markdown
Contributor Author

van800 commented May 25, 2026

Version 3.25 is also very old - year 2022.
https://github.com/Kitware/CMake/releases?page=14

@enetheru
Copy link
Copy Markdown
Contributor

haha, awesome, @van800 I wonder how this came up, was it some tooling? or a person who noticed?
@dsnopek I have no information about how its used in the wild, but since those features were being used and nobody mentioned it before now i think its reasonable to bump the version to match the features. It also opens the door for anything included in newer version, I believe I have something in there waiting for a version bump.
here is a good resource for cmake versions across platforms: https://cliutils.gitlab.io/modern-cmake/chapters/intro/installing.html

but if we don't want to bump the versions, I don't think either of those features are necessary.

  • REQUIRED can be worked around with a check after the fact. pretty sure its looking for python.
  • I don't even think SYSTEM should be used, it was carried over from prior setup before I touched it. I can't imagine a scenario to need it, but that's probably because I've never needed it.

@enetheru
Copy link
Copy Markdown
Contributor

Oh man i didn't notice which repo we were in.
I wonder why I put the SYSTEM keyword in there. going to have to check that one. brb

@enetheru
Copy link
Copy Markdown
Contributor

I think remember now?, marking the inclusion of godot-cpp directory as SYSTEM prevents the godot-cpp files from being added to the install targets. but thats not relevant here, and is a pretty hacky solution for that. I think it can just be removed.

@van800
Copy link
Copy Markdown
Contributor Author

van800 commented May 25, 2026

I bumped into it while testing myself on an older Ubuntu while testing a fix.

BTW, I managed to verify that my CI fails, when I set minimum required to 3.25 and install cmake 3.24 van800/godot-support#5

CMake 3.25 or higher is required. You are running version 3.24.0

Version 3.17 was so poor, that it wasn't even able to communicate this error clearly, so I had to bump at least to 3.24 to see the error.

@paddy-exe paddy-exe added the enhancement New feature or request label May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants