diff --git a/CMakeLists.txt b/CMakeLists.txt index ac286d8..4d8fe86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ # Copyright (c) 2019-2020 Cristian Adam # All rights reserved. -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) if (NOT HUNTER_URL AND NOT HUNTER_SHA1) file( diff --git a/cmake/HunterGate.cmake b/cmake/HunterGate.cmake index 17c6d38..b597ea5 100644 --- a/cmake/HunterGate.cmake +++ b/cmake/HunterGate.cmake @@ -25,7 +25,7 @@ # This is a gate file to Hunter package manager. # Include this file using `include` command and add package you need, example: # -# cmake_minimum_required(VERSION 3.5) +# cmake_minimum_required(VERSION 3.10) # # include("cmake/HunterGate.cmake") # HunterGate( @@ -45,10 +45,10 @@ option(HUNTER_ENABLED "Enable Hunter package manager support" ON) if(HUNTER_ENABLED) - if(CMAKE_VERSION VERSION_LESS "3.5") + if(CMAKE_VERSION VERSION_LESS "3.10") message( FATAL_ERROR - "At least CMake version 3.5 required for Hunter dependency management." + "At least CMake version 3.10 required for Hunter dependency management." " Update CMake or set HUNTER_ENABLED to OFF." ) endif() @@ -253,7 +253,7 @@ function(hunter_gate_download dir) file( WRITE "${cmakelists}" - "cmake_minimum_required(VERSION 3.5)\n" + "cmake_minimum_required(VERSION 3.10)\n" "if(POLICY CMP0114)\n" " cmake_policy(SET CMP0114 NEW)\n" "endif()\n"