From 45a5ee1724edc71d831e5e1cf79eea07848c85df Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Mon, 7 Nov 2022 08:41:46 +0100 Subject: [PATCH] Set new cmake policy CMP0057 This fixes build error with cmake 3.20.3 in CheckLinkerFlag.cmake. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b48a7049a..ea5e201f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR) INCLUDE(CheckFunctionExists) IF(COMMAND CMAKE_POLICY) - SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0077 CMP0069 CMP0075) + SET(NEW_POLICIES CMP0003 CMP0022 CMP0023 CMP0057 CMP0077 CMP0069 CMP0075) FOREACH(TYPE OLD NEW) FOREACH(P ${${TYPE}_POLICIES}) IF(POLICY ${P})