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.
This commit is contained in:
Anonymous Maarten 2024-06-24 14:38:53 +02:00
parent 75b8dca0c0
commit f5612ed41a

View File

@ -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 # MSVC runtime library flags are selected by an abstraction
cmake_policy(SET CMP0091 NEW) cmake_policy(SET CMP0091 NEW)
@ -95,7 +95,7 @@ function(add_cxx_warning WARNING)
endif() endif()
endfunction() endfunction()
add_subdirectory(3rdparty EXCLUDE_FROM_ALL) add_subdirectory(3rdparty EXCLUDE_FROM_ALL SYSTEM)
message(STATUS "MSVC for decompilation: ${MSVC_FOR_DECOMP}") message(STATUS "MSVC for decompilation: ${MSVC_FOR_DECOMP}")