From f2fe98d6c43be8163b68514ba6310b808640b93f Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Thu, 12 Jan 2023 11:43:18 +0000 Subject: [PATCH] Bump `cmake_minimum_required` to 3.15 DevilutionX already does not build on 3.13 because of libzt. libzt uses the `TARGET_OBJECTS` generator expression with non-OBJECT libraries. This is only supported in CMake 3.15+: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/3178 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa1ca751d..2e4bf4bd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.15) -foreach(_policy CMP0083 CMP0092 CMP0111 CMP0126 CMP0135) +foreach(_policy CMP0111 CMP0126 CMP0135) if(POLICY ${_policy}) cmake_policy(SET ${_policy} NEW) set(CMAKE_POLICY_DEFAULT_${_policy} NEW)