diff --git a/CMakeLists.txt b/CMakeLists.txt index 3028fc1..8be94ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()