summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Yefremov2024-01-12 07:50:32 +0000
committerPetr Štetiar2024-02-26 08:09:14 +0000
commit33ec3daaaa52cea628df91eb0eb1701e16172c1e (patch)
tree943356a3b62ef6eb782be852d2ae4acd0dbca07e
parentf01345ec13b9b27ffd314d8689fb2d3f9c81a47d (diff)
downloadnetifd-33ec3daaaa52cea628df91eb0eb1701e16172c1e.tar.gz
CMake: bump the minimum required CMake version to 3.5
From: Yegor Yefremov <yegorslists@googlemail.com> Older CMake versions are marked as deprecated and generate the related warning: Compatibility with CMake < 3.5 will be removed from a future version of CMake. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e86bd4..a3eaf65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,11 +1,9 @@
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 3.5)
PROJECT(netifd C)
-IF(NOT ${CMAKE_VERSION} LESS 3.0)
- include(CheckCCompilerFlag)
- check_c_compiler_flag(-Wimplicit-fallthrough HAS_IMPLICIT_FALLTHROUGH)
-ENDIF()
+include(CheckCCompilerFlag)
+check_c_compiler_flag(-Wimplicit-fallthrough HAS_IMPLICIT_FALLTHROUGH)
ADD_DEFINITIONS(-Wall -Werror)
IF(CMAKE_C_COMPILER_VERSION VERSION_GREATER 6)