mirror of https://github.com/PCSX2/pcsx2.git
CMake: Set minimum version first
Makes policy enabling based on minimum version work properly Also increases minimum version to 3.11 because we actually do use 3.11 features
This commit is contained in:
parent
e6f72fdde7
commit
ac8582eca7
|
@ -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
|
# Setting it to a range tells it that it supports the features on the newer
|
||||||
# versions as well, avoiding setting policies.
|
# 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
|
# Variable to check that people use the good file
|
||||||
set(TOP_CMAKE_WAS_SOURCED TRUE)
|
set(TOP_CMAKE_WAS_SOURCED TRUE)
|
||||||
|
|
|
@ -72,7 +72,7 @@ endif()
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
option(USE_ASAN "Enable address sanitizer")
|
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)
|
set(USE_CLANG TRUE)
|
||||||
message(STATUS "Building with Clang/LLVM.")
|
message(STATUS "Building with Clang/LLVM.")
|
||||||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
|
||||||
|
|
Loading…
Reference in New Issue