Skip to content

Commit 8027b88

Browse files
moha-ghaperezdc
authored andcommitted
cmake: Bump required CMake version to 3.5 to allow builds with CMake 4+
This enables builds with CMake 4+, fixing: CMake Error at CMakeLists.txt:1 (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. While at it, remove the extra call to 'cmake_policy()'. When passing the same version as to 'cmake_minimum_required()' it's not needed, as the latter calls the former automatically. Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
1 parent f9ec67d commit 8027b88

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
cmake_policy(VERSION 3.0)
1+
cmake_minimum_required(VERSION 3.5)
32

43
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
54
include(VersioningUtils)

0 commit comments

Comments
 (0)