From 511c9eba95f6b424dee04f4442969e5489e364f8 Mon Sep 17 00:00:00 2001 From: Ludvig Michaelsson Date: Wed, 30 Aug 2023 09:29:39 +0200 Subject: [PATCH] cmake: bump cmake_minimum_required() We are using VERSION_GREATER_EQUAL [1] which was added in CMake 3.7 (released in November 2016). The distributions that we perform releases for are all running at least this version, further substantiated by the fact that we've used this feature since libfido2 1.9.0 (released in October 2021). Moreover, this change silences a warning on modern CMake versions that compatilibity with versions less than CMake 3.5 is going to be removed in a future CMake release [2]. [1] https://cmake.org/cmake/help/latest/command/if.html#version-greater-equal [2] https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html#policy-settings This also resolves #718. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f651b224..097c7ffe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # SPDX-License-Identifier: BSD-2-Clause -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.7) # detect AppleClang; needs to come before project() cmake_policy(SET CMP0025 NEW)