diff --git a/CMakeLists.txt b/CMakeLists.txt index c7d9e9dbc7..261c7c59d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,9 @@ -# Project Name -project(Pcsx2) - -# Debian-based distributions require at least 2.8.5 due to multiarch. -# Bumping up to 3.0 seems reasonable at this point, and will let us modernize -# things a bit. -# # Setting it to a range tells it that it supports the features on the newer # versions as well, avoiding setting policies. -cmake_minimum_required(VERSION 3.10...3.17) +cmake_minimum_required(VERSION 3.11...3.22) + +# Project Name +project(Pcsx2) # Variable to check that people use the good file set(TOP_CMAKE_WAS_SOURCED TRUE) diff --git a/cmake/BuildParameters.cmake b/cmake/BuildParameters.cmake index 3a2ed63f6b..b31b1a7554 100644 --- a/cmake/BuildParameters.cmake +++ b/cmake/BuildParameters.cmake @@ -72,7 +72,7 @@ endif() #------------------------------------------------------------------------------- option(USE_ASAN "Enable address sanitizer") -if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") +if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") set(USE_CLANG TRUE) message(STATUS "Building with Clang/LLVM.") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")