Skip to content

Commit 3869891

Browse files
committed
Bump CMake minimal version up to 3.5
According to the docs[1], compatibility with versions of CMake older than 3.5 is deprecated since the version 3.27. Ubuntu 24.04 provides CMake 3.28.3 by default, so uJIT configuration starts spoiling the diagnostics with the following warning: | CMake Deprecation Warning at CMakeLists.txt:11 (cmake_minimum_required): | Compatibility with CMake < 3.5 will be removed from a future version of | CMake. | | Update the VERSION argument <min> value or use a ...<max> suffix to tell | CMake that the project does not need compatibility with older versions. Since there is no particular policies specified in the project CMake machinery, there is no need to stick to the 3.3.2 version. However, migration to the newest version requires more precise changes, so this patch only bumps the minimal required version up to 3.5. [1]: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html Signed-off-by: Igor Munkin <imun@cpan.org>
1 parent bbb2e4a commit 3869891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Copyright (C) 2015-2020 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
99

1010
# --- Initial setup ------------------------------------------------------------
11-
cmake_minimum_required(VERSION 3.3.2)
11+
cmake_minimum_required(VERSION 3.5)
1212
project(UJIT C)
1313

1414
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")

0 commit comments

Comments
 (0)