Skip to content

[Media Common] Update cmake_minimum_required to 3.5 consisently across CMakeLists#1919

Open
heitbaum wants to merge 1 commit intointel:masterfrom
heitbaum:cmake
Open

[Media Common] Update cmake_minimum_required to 3.5 consisently across CMakeLists#1919
heitbaum wants to merge 1 commit intointel:masterfrom
heitbaum:cmake

Conversation

@heitbaum
Copy link
Contributor

Some of the CMakeLists.txt are already requiring CMake 3.5.
Update remaining files to 3.5.
This supports the compilation with cmake-4.0.0

Fixes #1918

…s CMakeLists

Some of the CMakeLists.txt are already requiring CMake 3.5.
Update remaining files to 3.5.
This supports the compilation with cmake-4.0.0

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
ziyao233 pushed a commit to ziyao233/eweos-packages that referenced this pull request Apr 16, 2025
Apply an under-review patch to fix compatibility with CMake 4.0.

Reference: intel/media-driver#1918
Link: intel/media-driver#1919
YukariChiba pushed a commit to eweOS/packages that referenced this pull request Apr 17, 2025
Apply an under-review patch to fix compatibility with CMake 4.0.

Reference: intel/media-driver#1918
Link: intel/media-driver#1919
doanac pushed a commit to lmp-mirrors/meta-intel that referenced this pull request Jul 9, 2025
Cmake upgrade to 4.0+ removes compatibility with versions older than
3.5 [1].

Set a baseline policy version for CMake using
CMAKE_POLICY_VERSION_MINIMUM variable until intel-media-driver
is upgraded to include the fix [2].

[1] https://patchwork.yoctoproject.org/project/oe-core/cover/20250703132720.3378569-1-Moritz.Haase@bmw.de/
[2] intel/media-driver#1919

Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
@heitbaum
Copy link
Contributor Author

@intel-mediadev could you take a look at this PR. The main CMakeLists.txt is already 3.5. If the other CMakeLists.txt could be updated to the same. This patch is being used by a number of distributions, and it would be great if it could be incorporated upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Build with cmake-4.0.0 fails

1 participant