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

Silence warnings building with CMake v3.31 #17

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.5...3.12)

if (NOT HUNTER_URL AND NOT HUNTER_SHA1)
file(
Expand Down
4 changes: 2 additions & 2 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.5...3.12)
#
# include("cmake/HunterGate.cmake")
# HunterGate(
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.5...3.12)\n"
"if(POLICY CMP0114)\n"
" cmake_policy(SET CMP0114 NEW)\n"
"endif()\n"
Expand Down