Commit 8027b88
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
0 commit comments