From patchwork Fri Jan 12 07:50:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: lotigara--- via openwrt-devel X-Patchwork-Id: 1885902 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=oJRI7PaO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TBDMw0Xdmz1yPm for ; Fri, 12 Jan 2024 18:54:51 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:List-Help: Reply-To:List-Archive:List-Unsubscribe:List-Subscribe:From:List-Post:List-Id: Message-ID:MIME-Version:Date:Subject:To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=W2hMeWuVFjMDjZPSN34Mar/qD/bJqmye6/jRteI43NA=; b=oJRI7PaOFRI8o6nbEUd00gcmsw JsJPojzqQ8X5gNeYoXHkZdDQYcPRbddCZI/oL39rLZQZ9E8F83Wkt1Hisd1tnLV4TCFB7xffcVeYs TcPvDQpbFYw5qz4Y7ff4PT6GEgWqbBvB0CWQpE5vmLz/hqt1fRdnYE7zcmaqqNfZrzIlqxdKwHq26 cwMa4J04frXVJSs0+epjSTNBlByjdRhKzgbY6qXve2RV/W6ROajsB6nDLuKyymequH8CZ2aPhNHEI A4PZBz6kxgSZTdWnR+dn0mXIlVqCWT1gFmd4r5rozcJdLQ5hAanNJ5uwIH5gPlDq1XwDqrM+uLfAk T4vznwdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rOCKC-0028L3-2U; Fri, 12 Jan 2024 07:51:32 +0000 To: openwrt-devel@lists.openwrt.org Subject: [PATCH] CMake: bump the minimum required CMake version to 3.5 Date: Fri, 12 Jan 2024 08:50:32 +0100 MIME-Version: 1.0 Message-ID: List-Id: OpenWrt Development List List-Post: X-Patchwork-Original-From: Yegor Yefremov via openwrt-devel From: lotigara--- via openwrt-devel Precedence: list X-Mailman-Version: 2.1.34 X-BeenThere: openwrt-devel@lists.openwrt.org List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: yegorslists@googlemail.com List-Help: Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software. From: Yegor Yefremov 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 --- CMakeLists.txt | 8 +++----- 1 file 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)