From af5e6b4e41279947d52feb402e869688be2fe698 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sat, 29 Jun 2024 16:34:17 +0100 Subject: [PATCH] [FIXUP] cmake: Enable CMP0141 policy after `cmake_minimum_required()` Otherwise, the policy setting won't get any effect. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4583af6d5efaa..9104aff3e9800 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,13 +7,13 @@ # # Centos Stream 9, EOL in May 2027: # - CMake 3.26.5, https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/ +cmake_minimum_required(VERSION 3.22) if(POLICY CMP0141) # MSVC debug information format flags are selected by an abstraction. # We want to use the CMAKE_MSVC_DEBUG_INFORMATION_FORMAT variable # to select the MSVC debug information format. cmake_policy(SET CMP0141 NEW) endif() -cmake_minimum_required(VERSION 3.22) #============================= # Project / Package metadata