Skip to content

Commit b6ec7d3

Browse files
evan-goodeppisar
authored andcommitted
Increase CMake minimal version to 3.5.0
CMake 4.0.0 has removed compatibility for CMake < 3.5.0, so we need to bump the minimum version here.
1 parent f777d26 commit b6ec7d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
CMAKE_MINIMUM_REQUIRED (VERSION 3.5.0)
2+
CMAKE_POLICY(SET CMP0148 OLD)
13
PROJECT (dnf NONE)
2-
CMAKE_MINIMUM_REQUIRED (VERSION 2.4)
34

45
INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
56

dnf.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ License: GPL-2.0-or-later AND GPL-1.0-only
7373
URL: https://github.com/rpm-software-management/dnf
7474
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
7575
BuildArch: noarch
76-
BuildRequires: cmake
76+
BuildRequires: cmake >= 3.5.0
7777
BuildRequires: gettext
7878
# Documentation
7979
BuildRequires: systemd

0 commit comments

Comments
 (0)