From 3f314ed78111473b7cbf1b9d1854c9f6322eea7a Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Fri, 21 Mar 2025 08:51:51 +0100 Subject: [PATCH] CMakeLists.txt: remove obsolete policies Both CMP0011 and CMP0057 are covered by setting the CMake minimum version to 3.5. --- CMakeLists.txt | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ce1ad4..949cbf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,16 +11,6 @@ set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}) set(VERSION ${VERSION_STRING}) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) -# Support new if() IN_LIST operator -if(POLICY CMP0057) - cmake_policy(SET CMP0057 NEW) -endif() - -# Included scripts do automatic cmake_policy() PUSH and POP -if(POLICY CMP0011) - cmake_policy(SET CMP0011 NEW) -endif() - # Target link properties INTERFACE_LINK_OPTIONS, INTERFACE_LINK_DIRECTORIES # and INTERFACE_LINK_DEPENDS are now transitive over private dependencies # of static libraries -- 1.7.1