Require CMake 3.6.

This commit is contained in:
tastytea 2019-08-03 13:11:56 +02:00
parent 88751694a5
commit 32e0a46a7f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
# Support version 3.1 and above, but use policy settings up to 3.14.
cmake_minimum_required(VERSION 3.1...3.14)
# Ranges are supported from 3.12, set policy to current for 3.1 - 3.11.
# Support version 3.6 and above, but use policy settings up to 3.14.
# 3.6 is needed because of IMPORTED_TARGET in pkg_check_modules().
cmake_minimum_required(VERSION 3.6...3.14)
# Ranges are supported from 3.12, set policy to current for < 3.12.
if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
endif()