From d57b799ff05709b435af56d29158ceece62e57df Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christoph=20Gr=C3=BCninger?= Date: Sun, 17 Dec 2023 22:18:43 +0100 Subject: [PATCH] cmake: Do not set CMake policy to new that are set anyway MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CMP0097 and below are all implicitly set to new because the minimum required CMake version is 3.16 and these policies are older. Signed-off-by: Christoph Grüninger --- CMakeLists.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4feb22c135e..6e810d10589 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,17 +4,6 @@ project(ceph VERSION 18.0.0 LANGUAGES CXX C ASM) -cmake_policy(SET CMP0028 NEW) -cmake_policy(SET CMP0046 NEW) -cmake_policy(SET CMP0048 NEW) -cmake_policy(SET CMP0051 NEW) -cmake_policy(SET CMP0054 NEW) -cmake_policy(SET CMP0056 NEW) -cmake_policy(SET CMP0065 NEW) -cmake_policy(SET CMP0074 NEW) -cmake_policy(SET CMP0075 NEW) -cmake_policy(SET CMP0093 NEW) -cmake_policy(SET CMP0094 NEW) foreach(policy CMP0127 CMP0135) if(POLICY ${policy}) cmake_policy(SET ${policy} NEW) -- 2.39.5