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
This commit is contained in:
Kornel Benko 2023-12-31 15:18:11 +01:00
parent 638c04dd6a
commit 8d79860ea7
7 changed files with 8 additions and 8 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -2,9 +2,9 @@
# Licence details can be found in the file COPYING.
#
# Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
# Copyright (c) 2008-2020 Kornel Benko, <Kornel.Benko@berlin.de>
# Copyright (c) 2008-2024 Kornel Benko, <Kornel.Benko@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,

View File

@ -22,7 +22,7 @@
#//
#////////////////////////////////////////////////////////////////////////////////
cmake_minimum_required(VERSION 2.6.4)
cmake_minimum_required(VERSION 3.5.0)
project(vld)