From: Lasse Collin Date: Sun, 15 Dec 2024 17:08:32 +0000 (+0200) Subject: CMake: Bump maximum policy version to 3.31 X-Git-Tag: v5.7.1alpha~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61feaf681bd793dc5c919732b44bca7dcf2ed1b8;p=thirdparty%2Fxz.git CMake: Bump maximum policy version to 3.31 With CMake 3.31, there were a few warnings from CMP0177 "install() DESTINATION paths are normalized". These occurred because the install(FILES) command in my_install_man_lang() is called with a DESTINATION path that contains two consecutive slashes, for example, "share/man//man1". Such a path is for the English man pages. With translated man pages, the language code goes between the slashes. The warning was probably triggered because the extra slash gets removed by the normalization. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index f47eb369..bc2ff9bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ # ############################################################################# -cmake_minimum_required(VERSION 3.20...3.30 FATAL_ERROR) +cmake_minimum_required(VERSION 3.20...3.31 FATAL_ERROR) include(CMakePushCheckState) include(CheckIncludeFile)