Skip to content

Commit

Permalink
cmake: bump cmake_minimum_required()
Browse files Browse the repository at this point in the history
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 that
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.
  • Loading branch information
LDVG committed Aug 30, 2023
1 parent bcbde20 commit b084cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b084cd4

Please sign in to comment.