CMake: Set the minimum CMake version to 3.12

In fact this version is required after 00a0e0e723
(FindPython3 added in 3.12)
This commit is contained in:
Alexander Akulich 2023-09-07 22:18:40 +03:00
parent a9157e8385
commit 225b175889

View file

@ -1,7 +1,4 @@
cmake_minimum_required(VERSION 2.8.12...3.19.1)
if(CMAKE_VERSION VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_VERSION})
endif()
cmake_minimum_required(VERSION 3.12...3.27.4)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.15 CACHE INTERNAL "Minimum macOS deployment version")
if(CMAKE_OSX_DEPLOYMENT_TARGET VERSION_LESS 10.15)