commit 8d79860ea76da4d9c0b87fce86526da15b686ab9
Author: Kornel Benko <kor...@lyx.org>
Date:   Sun Dec 31 15:18:11 2023 +0100

    Cmake build: Handle deprecated cmake versions
    
    The warning says:
    CMake Deprecation Warning at .../CMakeLists.txt:1 (cmake_minimum_required):
      Compatibility with CMake < 3.5 will be removed from a future version of
      CMake.
    
    Spotted by Scott Kostyshak
---
 3rdparty/dtl/CMakeLists.txt                | 2 +-
 3rdparty/hunspell/CMakeLists.txt           | 2 +-
 3rdparty/libiconv/CMakeLists.txt           | 2 +-
 3rdparty/mythes/CMakeLists.txt             | 2 +-
 3rdparty/zlib/CMakeLists.txt               | 2 +-
 CMakeLists.txt                             | 4 ++--
 development/Win32/vld/cmake/CMakeLists.txt | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/3rdparty/dtl/CMakeLists.txt b/3rdparty/dtl/CMakeLists.txt
index f757b26b17..20df178997 100644
--- a/3rdparty/dtl/CMakeLists.txt
+++ b/3rdparty/dtl/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
diff --git a/3rdparty/hunspell/CMakeLists.txt b/3rdparty/hunspell/CMakeLists.txt
index 389524b0d8..00b36491b1 100644
--- a/3rdparty/hunspell/CMakeLists.txt
+++ b/3rdparty/hunspell/CMakeLists.txt
@@ -1,5 +1,5 @@
 
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
diff --git a/3rdparty/libiconv/CMakeLists.txt b/3rdparty/libiconv/CMakeLists.txt
index 12d5446a12..cb921d071d 100644
--- a/3rdparty/libiconv/CMakeLists.txt
+++ b/3rdparty/libiconv/CMakeLists.txt
@@ -5,7 +5,7 @@
 # Please note that the package source code is licensed under its own license.
 
 project ( libiconv C )
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
diff --git a/3rdparty/mythes/CMakeLists.txt b/3rdparty/mythes/CMakeLists.txt
index 869bee7c93..251d4ffc93 100644
--- a/3rdparty/mythes/CMakeLists.txt
+++ b/3rdparty/mythes/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
diff --git a/3rdparty/zlib/CMakeLists.txt b/3rdparty/zlib/CMakeLists.txt
index e81e43af1c..0b539a58b0 100644
--- a/3rdparty/zlib/CMakeLists.txt
+++ b/3rdparty/zlib/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_IPO_SUPPORTED FALSE)
 if (POLICY CMP0069)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38e11b8a0b..86226dc8e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,9 +2,9 @@
 # Licence details can be found in the file COPYING.
 #
 # Copyright (c) 2006-2011 Peter Kümmel, <syntheti...@gmx.net>
-# Copyright (c) 2008-2020 Kornel Benko, <kornel.be...@berlin.de>
+# Copyright (c) 2008-2024 Kornel Benko, <kornel.be...@berlin.de>
 
-cmake_minimum_required(VERSION 3.1.0)
+cmake_minimum_required(VERSION 3.5.0)
 
 set(LYX_PROJECT LyX)
 # Instruct cmake to not use gnu extensions,
diff --git a/development/Win32/vld/cmake/CMakeLists.txt 
b/development/Win32/vld/cmake/CMakeLists.txt
index b197151895..5ccbe1572c 100644
--- a/development/Win32/vld/cmake/CMakeLists.txt
+++ b/development/Win32/vld/cmake/CMakeLists.txt
@@ -22,7 +22,7 @@
 #//
 
#////////////////////////////////////////////////////////////////////////////////
 
-cmake_minimum_required(VERSION 2.6.4)
+cmake_minimum_required(VERSION 3.5.0)
 
 project(vld)
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to