0001-cmake-Bump-required-CMake-version-to-3.5-to-allow-bu.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From 7b227c7c1ac226498b1ea3987f87350d0f14f49f Mon Sep 17 00:00:00 2001
  2. From: Moritz Haase <Moritz.Haase@bmw.de>
  3. Date: Wed, 2 Jul 2025 09:19:44 +0200
  4. Subject: [PATCH] cmake: Bump required CMake version to 3.5 to allow builds
  5. with CMake 4+
  6. This enables builds with CMake 4+, fixing:
  7. CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  8. Compatibility with CMake < 3.5 has been removed from CMake.
  9. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
  10. to tell CMake that the project requires at least <min> but has been
  11. updated to work with policies introduced by <max> or earlier.
  12. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
  13. While at it, remove the extra call to 'cmake_policy()'. When passing the same
  14. version as to 'cmake_minimum_required()' it's not needed, as the latter calls
  15. the former automatically.
  16. Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
  17. Upstream-Status: Submitted [https://github.com/WebPlatformForEmbedded/libwpe/pull/136]
  18. ---
  19. CMakeLists.txt | 3 +--
  20. 1 file changed, 1 insertion(+), 2 deletions(-)
  21. diff --git a/CMakeLists.txt b/CMakeLists.txt
  22. index db9ae50..2a01daf 100644
  23. --- a/CMakeLists.txt
  24. +++ b/CMakeLists.txt
  25. @@ -1,5 +1,4 @@
  26. -cmake_minimum_required(VERSION 3.0)
  27. -cmake_policy(VERSION 3.0)
  28. +cmake_minimum_required(VERSION 3.5)
  29. set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
  30. include(VersioningUtils)