Require CMake 3.6.
This commit is contained in:
parent
88751694a5
commit
32e0a46a7f
@ -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()
|
||||
|
Reference in New Issue
Block a user