From: Christoph GrĂ¼ninger Date: Sun, 17 Dec 2023 21:18:43 +0000 (+0100) Subject: cmake: Do not set CMake policy to new that are set anyway X-Git-Tag: v19.3.0~352^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F54937%2Fhead;p=ceph.git cmake: Do not set CMake policy to new that are set anyway 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4feb22c135e1..6e810d105895 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)