From 3a2a62fac943ebc5104bdfd50e35bcf6889e1845 Mon Sep 17 00:00:00 2001 From: Harry Mallon Date: Mon, 16 Dec 2024 11:07:50 +0000 Subject: [PATCH] Silence warnings building with CMake v3.31 --- CMakeLists.txt | 2 +- cmake/HunterGate.cmake | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ac286d8..ce0901a 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.5...3.12) if (NOT HUNTER_URL AND NOT HUNTER_SHA1) file( diff --git a/cmake/HunterGate.cmake b/cmake/HunterGate.cmake index 17c6d38..f4f3808 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.5...3.12) # # include("cmake/HunterGate.cmake") # HunterGate( @@ -253,7 +253,7 @@ function(hunter_gate_download dir) file( WRITE "${cmakelists}" - "cmake_minimum_required(VERSION 3.5)\n" + "cmake_minimum_required(VERSION 3.5...3.12)\n" "if(POLICY CMP0114)\n" " cmake_policy(SET CMP0114 NEW)\n" "endif()\n"