Skip to content

Can't build on modern environment #34

@fedulvtubudul

Description

@fedulvtubudul
  • MacBook Pro M1 Max
  • MacOS Tahoe 26.2
  • Xcode 26.2

Root CMakeLists file in libsdptransform declares CMake dependency as >3.0:

cmake_minimum_required(VERSION 3.0)

On my environment, which is quite typical for iOS developer now I can't build libmediasoupclient because of libsdptransform:

CMake Error at ~/mediasoup-client-swift/build/libmediasoupclient/device/arm64/_deps/libsdptransform-src/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.

If I change this version requirement to 3.5, project can be built. But still there is a deprecation warning:

Compatibility with CMake < 3.10 will be removed from a future version of CMake.

I believe we can safely bump minimum CMake version requirement to 3.10, which is ~9 years old.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions