From 8ffbc0f114f127b086250186373a2de1974702cd Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Wed, 8 Sep 2021 16:44:13 +0100 Subject: [PATCH 1/2] CMake: Specify "policy_max" --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99688718..296b5be7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.10) +cmake_minimum_required(VERSION 3.10...3.21) # --------------------------------------------------------------------------------------- # Start spdlog project From ef540c1243253f410409b7869d030cd9ef07bd52 Mon Sep 17 00:00:00 2001 From: Cristian Morales Vega Date: Wed, 8 Sep 2021 16:45:04 +0100 Subject: [PATCH 2/2] CMake: Stop explicitly setting CMP0077 The policy_max in cmake_minimum_required() already does that. --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 296b5be7..58e76f52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,13 +15,6 @@ message(STATUS "Build spdlog: ${SPDLOG_VERSION}") include(GNUInstallDirs) -# --------------------------------------------------------------------------------------- -# Set CMake policies to support later version behaviour -# --------------------------------------------------------------------------------------- -if(POLICY CMP0077) - cmake_policy(SET CMP0077 NEW) # option() honors variables already set -endif() - # --------------------------------------------------------------------------------------- # Set default build to release # ---------------------------------------------------------------------------------------