8000 CMake 4: Build fails with `Compatibility with CMake < 3.5 has been removed from CMake.`. · Issue #16 · f4exb/libmirisdr-4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CMake 4: Build fails with Compatibility with CMake < 3.5 has been removed from CMake.. #16
Open
@dreirund

Description

@dreirund

Ahoj,

with Cmake 4, cmake run fails with

CMake Error at CMakeLists.txt:23 (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.


-- Configuring incomplete, errors occurred!

Workaround adding -DCMAKE_POLICY_VERSION_MINIMUM=3.5 makes it building, but actually this issue popped up at some projects with Cmake 4 and means that some things have to be updated, see e.g. here.

Regards!

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

      0