Skip to content

[Python][CI] Remove use of CMAKE_POLICY_VERSION_MINIMUM on musllinux #47801

@AlenkaF

Description

@AlenkaF

Describe the enhancement requested

When adding support for Python 3.14 the musllinux wheels started failing due to

  #14 16.69 CMake Error at /opt/vcpkg/buildtrees/_vcpkg/build/_deps/cmakerc-src/CMakeRC.cmake:37 (cmake_minimum_required):
  #14 16.69   Compatibility with CMake < 3.5 has been removed from CMake.
  #14 16.69 
  #14 16.69   Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  #14 16.69   to tell CMake that the project requires at least <min> but has been updated
  #14 16.69   to work with policies introduced by <max> or earlier.
  #14 16.69 
  #14 16.69   Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

see: #47616 (comment)

Specifying CMAKE_POLICY_VERSION_MINIMUM helped, as per #47616 (comment). In the future it would be better if we can remove the use of it, see #47616 (comment).

Component(s)

Continuous Integration, Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions