intel / intel/media-driver

[Bug]: Build with cmake-4.0.0 fails

Open
#1,918 2 comments 0 reactions 2 assignees Claimed by @XinfengZhang View on GitHub
Dominant language
C
Stars
1.2k
Forks
383
Avg merge
8d 18h
Merged PRs (30d)
4

Description

### Which component impacted?

Build

### Is it regression? Good in old configuration?

None

### What happened?

Build with cmake-4.0.0
```
CMake Error at os_release_info.cmake:32 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Call Stack (most recent call first):
CMakeLists.txt:30 (include)
```

### What's the usage scenario when you are seeing the problem?

Others

### What impacted?

Build of media-driver

### Debug Information

_No response_

### Do you want to contribute a patch to fix the issue?

Yes, I'm glad to submit a patch to fix it

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.