CMake Deprecation Warning -- Update the VERSION argument <min> value or use the <min>...<max> syntax
Open
Nobody has claimed this yet.
wontfix
- Dominant language
- C++
- Stars
- 28.5k
- Forks
- 2.3k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 62
Description
When building mlx, I get this warning:
CMake Deprecation Warning at build/_deps/doctest-src/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Not critical, but the next time that someone has a reason to fiddle with the cmake file, this is something that could be silenced.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the warning while building MLX and inspect build/_deps/doctest-src/CMakeLists.txt, where CMake reports the deprecated minimum-version syntax. Trace whether that file comes from the project or a fetched dependency before choosing the relevant source location. Done means the build no longer emits this deprecation warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100