Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

torchtext no longer builds with CMake >=4.0 #2294

@alexreinking

Description

@alexreinking

🐛 Bug

Describe the bug: The double-conversion dependency no longer builds under CMake 4.0 because it sets its minimum compatible version to 3.0. Thus, torchtext no longer builds, either.

To Reproduce:

  1. Install cmake >= 4.0, perhaps via pip install cmake
  2. python setup.py develop

Expected behavior: It should build.

Screenshots: Here's the exact error I see:

CMake Error at third_party/double-conversion/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from 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.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions