From f5612ed41aaa6577959cd9529b29c39bca1c4576 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 24 Jun 2024 14:38:53 +0200 Subject: [PATCH] cmake: bump minimum required CMake version to 3.25 to allow adding a subproject with SYSTEM automatically applied An alternative would be to use SYSTEM in target_include_directories in the 3rd party cmake script. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac423663..d3db0c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.15 FATAL_ERROR) +cmake_minimum_required(VERSION 3.25 FATAL_ERROR) # MSVC runtime library flags are selected by an abstraction cmake_policy(SET CMP0091 NEW) @@ -95,7 +95,7 @@ function(add_cxx_warning WARNING) endif() endfunction() -add_subdirectory(3rdparty EXCLUDE_FROM_ALL) +add_subdirectory(3rdparty EXCLUDE_FROM_ALL SYSTEM) message(STATUS "MSVC for decompilation: ${MSVC_FOR_DECOMP}")