Skip to content

Address ucm incompatibility with CMake >= 4.0.2. #91

@gvansickle

Description

@gvansickle

Reported by me upstream: onqtam/ucm#17 . Quoting that report:

"
The compatibility warning at least partially addressed in PR [https://github.com/onqtam/ucm/pull/15] is now a hard error as of CMake 4.0.2. Error text is as follows:

CMake Error at cmake/ucm/cmake/ucm.cmake:13 (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.

"

The lowest immediate effort workaround for us here is to change the "cmake_minimum_required(VERSION)" from its current value of 2.8.12 to 3.5. This is done in #89 , and nothing seems to break for the few CMake functions we use from it. However, it's pretty clear that the ucm project is unmaintained, so find some alternative to address this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreThings that need doing but aren't a bug or feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions