From 3690c41cb0f695d08950a706731280fec9627993 Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Sat, 17 Apr 2021 21:59:38 -0700 Subject: [PATCH] build: Remove CMP0011 OLD policy This policy allowed included files and modules to affect policy in the parent scope. Besides the top level, 3rdparty/libprojectm is the only place where old policy is set. Reference: https://cmake.org/cmake/help/latest/policy/CMP0011.html --- CMakeLists.txt | 1 - src/CMakeLists.txt | 1 - 2 files changed, 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15cf068b9..fb81877d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ project(clementine) cmake_minimum_required(VERSION 3.0.0) -cmake_policy(SET CMP0011 OLD) cmake_policy(SET CMP0053 OLD) include(CheckCXXCompilerFlag) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7253b485b..3527ebafe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,7 +52,6 @@ if(HAVE_SPOTIFY) include_directories(${CMAKE_BINARY_DIR}/ext/libclementine-spotifyblob) endif(HAVE_SPOTIFY) -cmake_policy(SET CMP0011 NEW) include(../cmake/ParseArguments.cmake) if(HAVE_TRANSLATIONS)