Cmake build: Remove warning about deprecated Compatibility with cmake <

3.10

Also use NEW policy CMP0177, since we already should not use '..' or '.'
in destination paths.
This commit is contained in:
Kornel Benko 2024-12-07 15:24:15 +01:00
parent ac90ebad04
commit e6c49c127f
7 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10)
set(LYX_IPO_SUPPORTED FALSE)
if (POLICY CMP0069)

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10)
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.5.0)
cmake_minimum_required(VERSION 3.10)
set(LYX_IPO_SUPPORTED FALSE)
if (POLICY CMP0069)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10)
set(LYX_IPO_SUPPORTED FALSE)
if (POLICY CMP0069)

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10)
set(LYX_IPO_SUPPORTED FALSE)
if (POLICY CMP0069)

View File

@ -4,8 +4,11 @@
# Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
# Copyright (c) 2008-2024 Kornel Benko, <Kornel.Benko@berlin.de>
cmake_minimum_required(VERSION 3.5.0)
cmake_minimum_required(VERSION 3.10)
if (POLICY CMP0177)
cmake_policy(SET CMP0177 NEW)
endif()
set(LYX_PROJECT LyX)
# Instruct cmake to not use gnu extensions,
# this prevents the mix of '-std=c++*' and '-std=gnu++*' flags

View File

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