Skip to content

Conversation

bhavyap1010
Copy link

Summary

This PR updates the minimum required CMake versions in the build scripts to make sure coremltools can be built with newer versions of CMake (like 4.x).

Details

When trying to build coremltools from source with CMake 4.x, I ran into errors because the old minimum version requirements are no longer supported. Updating these to 3.5 and 3.10 fixes the issue and lets the build complete successfully.

  • Updated cmake_minimum_required to 3.10.0 in CMakeLists.txt
  • Updated cmake_minimum_required to 3.5.0 in CMakeLists.txt

This should help anyone using a modern CMake version build coremltools without running into compatibility errors. No changes to the actual code—just a small tweak to the build setup.

@acosmicflamingo
Copy link

This helped me :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants