From 78bced06a4fec5c10eca610eee4cd77ca9bc54d9 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 19 Dec 2022 18:50:01 +0000 Subject: [PATCH] Fix building with CMake versions below 3.24 There's also no need to explicitly set CMP0015 to NEW as that's included when setting the minimum required CMake version. --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 332655af..8c8d0398 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.8) -cmake_policy(SET CMP0015 NEW) -cmake_policy(SET CMP0135 NEW) +if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) +endif() project(libloot) include(ExternalProject)