From a69c5aceb2feef5df63a7c79fde9c355c51138a8 Mon Sep 17 00:00:00 2001 From: "George A. Dorobantu" Date: Mon, 25 Sep 2023 11:36:21 -0400 Subject: [PATCH] Bumped CMake minimum required version to 3.5 --- CMakeLists.txt | 2 +- cmake/HunterGate.cmake | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b3d8ba..ac286d8 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.2) +cmake_minimum_required(VERSION 3.5) if (NOT HUNTER_URL AND NOT HUNTER_SHA1) file( diff --git a/cmake/HunterGate.cmake b/cmake/HunterGate.cmake index 64ccde5..76c98d9 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.2) +# cmake_minimum_required(VERSION 3.5) # # 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.2") + if(CMAKE_VERSION VERSION_LESS "3.5") message( FATAL_ERROR - "At least CMake version 3.2 required for Hunter dependency management." + "At least CMake version 3.5 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.2)\n" + "cmake_minimum_required(VERSION 3.5)\n" "project(HunterDownload LANGUAGES NONE)\n" "include(ExternalProject)\n" "ExternalProject_Add(\n"