Skip to content

Commit 9205073

Browse files
authored
Update minimum CMake to v3.10 (#18)
Using CMake v3.10 as minimum version as upstream CMake dropped support. See: cpp-pm/hunter#767
1 parent 3ccad44 commit 9205073

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Copyright (c) 2019-2020 Cristian Adam
33
# All rights reserved.
44

5-
cmake_minimum_required(VERSION 3.5)
5+
cmake_minimum_required(VERSION 3.10)
66

77
if (NOT HUNTER_URL AND NOT HUNTER_SHA1)
88
file(

Diff for: cmake/HunterGate.cmake

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# This is a gate file to Hunter package manager.
2626
# Include this file using `include` command and add package you need, example:
2727
#
28-
# cmake_minimum_required(VERSION 3.5)
28+
# cmake_minimum_required(VERSION 3.10)
2929
#
3030
# include("cmake/HunterGate.cmake")
3131
# HunterGate(
@@ -45,10 +45,10 @@
4545
option(HUNTER_ENABLED "Enable Hunter package manager support" ON)
4646

4747
if(HUNTER_ENABLED)
48-
if(CMAKE_VERSION VERSION_LESS "3.5")
48+
if(CMAKE_VERSION VERSION_LESS "3.10")
4949
message(
5050
FATAL_ERROR
51-
"At least CMake version 3.5 required for Hunter dependency management."
51+
"At least CMake version 3.10 required for Hunter dependency management."
5252
" Update CMake or set HUNTER_ENABLED to OFF."
5353
)
5454
endif()
@@ -253,7 +253,7 @@ function(hunter_gate_download dir)
253253
file(
254254
WRITE
255255
"${cmakelists}"
256-
"cmake_minimum_required(VERSION 3.5)\n"
256+
"cmake_minimum_required(VERSION 3.10)\n"
257257
"if(POLICY CMP0114)\n"
258258
" cmake_policy(SET CMP0114 NEW)\n"
259259
"endif()\n"

0 commit comments

Comments
 (0)