File 0008-Silence-cmake_minimum_required-warnings.patch of Package rstudio
From 986639a3f2b20d5425cacbf89f8199d3d6802932 Mon Sep 17 00:00:00 2001
From: haem <mixosaurus+obs@pm.me>
Date: Fri, 12 Sep 2025 17:17:21 +0200
Subject: [PATCH 08/12] Silence cmake_minimum_required warnings
---
CMakeLists.txt | 2 +-
package/osx/cmake/prepare-package.cmake | 2 +-
src/CMakeLists.txt | 2 +-
src/cpp/CMakeLists.txt | 2 +-
src/gwt/CMakeLists.txt | 2 +-
src/node/CMakeLists.txt | 2 +-
src/node/desktop/CMakeLists.txt | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 106a7591..48155299 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,7 +13,7 @@
#
#
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
# initialize
include(cmake/init.cmake)
diff --git a/package/osx/cmake/prepare-package.cmake b/package/osx/cmake/prepare-package.cmake
index 47a39d0d..e69eded3 100644
--- a/package/osx/cmake/prepare-package.cmake
+++ b/package/osx/cmake/prepare-package.cmake
@@ -13,7 +13,7 @@
#
#
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
# CMake's message is suppressed during install stage so just use echo here
function(echo MESSAGE)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 36498e71..5a50b2cc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -12,7 +12,7 @@
#
# set minimum version
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
# don't add gwt for special 32-bit binary builds on windows (since
# we've already got it from the 64-bit build), for development mode
diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
index 18b87dd6..ac002742 100644
--- a/src/cpp/CMakeLists.txt
+++ b/src/cpp/CMakeLists.txt
@@ -14,7 +14,7 @@
#
# set minimum version
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
# initialize
include("${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/init.cmake")
diff --git a/src/gwt/CMakeLists.txt b/src/gwt/CMakeLists.txt
index 2a98ee26..d20936a8 100644
--- a/src/gwt/CMakeLists.txt
+++ b/src/gwt/CMakeLists.txt
@@ -13,7 +13,7 @@
#
#
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
project (RSTUDIO_GWT)
set(GWT_LIB_DIR "lib")
diff --git a/src/node/CMakeLists.txt b/src/node/CMakeLists.txt
index d4b44313..00aecb00 100644
--- a/src/node/CMakeLists.txt
+++ b/src/node/CMakeLists.txt
@@ -12,7 +12,7 @@
#
# set minimum version
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
# don't add electron for development mode (since faster to work
# iteratively using "npm start" and so forth)
diff --git a/src/node/desktop/CMakeLists.txt b/src/node/desktop/CMakeLists.txt
index df379742..4efddea9 100644
--- a/src/node/desktop/CMakeLists.txt
+++ b/src/node/desktop/CMakeLists.txt
@@ -13,7 +13,7 @@
#
#
-cmake_minimum_required(VERSION 3.6.3)
+cmake_minimum_required(VERSION 3.6.3...3.19)
project(ELECTRON_DESKTOP)
if (LINUX)
--
2.51.0