From 87042f4835d90f85ebc5416dc53b90e3c5b8c3f8 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Tue, 6 Feb 2024 09:46:07 -0800 Subject: [PATCH] cmake: set the minimum version to 3.9.0 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. --- CMakeLists.txt | 9 +-------- src/gui/shellwidget/CMakeLists.txt | 5 +---- third-party/CMakeLists.txt | 5 +---- 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adfa530cc..88bb5e01a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/gui/shellwidget/CMakeLists.txt b/src/gui/shellwidget/CMakeLists.txt index f7fa9fdb3..82fc9f911 100644 --- a/src/gui/shellwidget/CMakeLists.txt +++ b/src/gui/shellwidget/CMakeLists.txt @@ -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) diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 54243a159..c36ee913d 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -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) #