Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update minimum CMake to v3.10 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
8 changes: 4 additions & 4 deletions cmake/HunterGate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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()
Expand Down Expand Up @@ -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"
Expand Down