Skip to content

Commit

Permalink
cmake: set the minimum version to 3.9.0
Browse files Browse the repository at this point in the history
Newer versions of cmake warn that support for cmake < 3.5 will be removed.

cmake 3.9.0 was released in 2017 and most distros have much newer
versions available at this point.

Bump the minimum required version to 3.9.0 to silence deprecation warnings.
  • Loading branch information
davvid authored and equalsraf committed Feb 6, 2024
1 parent 31ddd19 commit 87042f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
9 changes: 1 addition & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
if (POLICY CMP0069)
cmake_policy(SET CMP0069 NEW)
endif (POLICY CMP0069)

cmake_minimum_required(VERSION 3.9.0)
# Neovim-Qt Version, used by --version update before release
# 9999 = Development Pre-Release
project(neovim-qt VERSION 0.2.18.0)
Expand Down
5 changes: 1 addition & 4 deletions src/gui/shellwidget/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
cmake_minimum_required(VERSION 3.9.0)
project(qshellwidget)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down
5 changes: 1 addition & 4 deletions third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# This is a minimal CMake project to fetch and build third party
# dependencies
cmake_minimum_required(VERSION 2.8.12)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
cmake_minimum_required(VERSION 3.9.0)
project(neovim-qt-deps)

#
Expand Down

0 comments on commit 87042f4

Please sign in to comment.