Skip to content

Commit

Permalink
#685 Minimum cmake version required now 3.5 (#689)
Browse files Browse the repository at this point in the history
* Minimum cmake version required now 3.5
  Replace all "cmake_minimum_required" for cmake versions with 3.5
  with 3.5 itself - reflecting soon to be the minimum version that
  cmake supports.
* Minimum cmake version required in PR template now 3.5 too
* Update cmake.rst in documentation
  Remove general references for cmake prior to 3.5 except for pure history comment.

---------

Co-authored-by: NeroBurner <pyro4hell@gmail.com>
  • Loading branch information
john-forrest and NeroBurner committed Sep 25, 2023
1 parent eb3c4ed commit 2e29b53
Show file tree
Hide file tree
Showing 648 changed files with 709 additions and 718 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ assignees: ''
```cmake
# CMakeLists.txt
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)
include("cmake/HunterGate.cmake")
HunterGate(
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

* I've checked this [Git style guide](https://0.readthedocs.io/en/latest/git.html). **[Yes|No]**
* I've checked this [CMake style guide](https://0.readthedocs.io/en/latest/cmake.html). **[Yes|No]**
* My change will work with CMake 3.2 (minimum requirement for Hunter). **[Yes|No]**
* My change will work with CMake 3.5 (minimum requirement for Hunter). **[Yes|No]**
* I will try to keep this pull request as small as possible and will try not to mix unrelated features. **[Yes|No]**

---
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_apply_gate_settings.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(CMakeParseArguments) # cmake_parse_arguments

Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_boost_component_b2_args.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2016, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

# for iostreams dependency on ZLIB and BZIP2
include(hunter_add_package)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_calculate_config_sha1.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_assert_not_empty_string)
include(hunter_config)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_calculate_self.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_internal_error)
include(hunter_assert_not_empty_string)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_lock_directory.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_fatal_error)
include(hunter_status_debug)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_make_directory.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_internal_error)
include(hunter_lock_directory)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_set_config_location.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_internal_error)
include(hunter_status_print)
Expand Down
2 changes: 1 addition & 1 deletion cmake/modules/hunter_setup_msvc.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2014-2016, Ruslan Baratov, Sumedh Ghaisas
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

include(hunter_fatal_error)
include(hunter_internal_error)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

list(APPEND CMAKE_MODULE_PATH "@HUNTER_SELF@/cmake/modules")
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/Boost/schemes/url_sha1_boost.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013-2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/NASM/schemes/url_sha1_nasm_windows.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2017, Zhuhao Wang
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/OpenBLAS/schemes/OpenBLAS.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/OpenSSL/ep-stages/configure.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)

if(NOT "@NASM_ROOT@" STREQUAL "")
set(ENV{PATH} "@NASM_ROOT@/bin;$ENV{PATH}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.5)

if(NOT "@NASM_ROOT@" STREQUAL "")
set(ENV{PATH} "@NASM_ROOT@/bin;$ENV{PATH}")
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/OpenSSL/schemes/url_sha1_openssl.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2014, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/Qt/ep-stages/qt-build.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

### Input params check

Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/Qt/ep-stages/qt-configure.cmake.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Input params check
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

string(COMPARE EQUAL "@configure_command@" "" is_empty)
if(is_empty)
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/Qt/ep-stages/qt-install.cmake.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### Input params check
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

string(COMPARE EQUAL "@global_install_dir@" "" is_empty)
if(is_empty)
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/Qt/schemes/url_sha1_qt.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015-2016 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/botan/schemes/url_sha1_botan.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(Hunter)

Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/botan/schemes/url_sha1_botan_ios.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(Hunter)

Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/botan/schemes/url_sha1_botan_macos.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(Hunter)

Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/botan/schemes/url_sha1_botan_win.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)

project(Hunter)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

list(APPEND CMAKE_MODULE_PATH "@HUNTER_SELF@/cmake/modules")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

list(APPEND CMAKE_MODULE_PATH "@HUNTER_SELF@/cmake/modules")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Copyright (c) 2017, Sacha Refshauge
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/tcl/schemes/url_sha1_tcl_autotools.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/x264/schemes/url_sha1_x264.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2017 Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/projects/xcb/schemes/xcb.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2016 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
2 changes: 1 addition & 1 deletion cmake/schemes/git_tag_cmake.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/schemes/url_sha1_autogen_autotools.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

list(APPEND CMAKE_MODULE_PATH "@HUNTER_SELF@/cmake/modules")
Expand Down
2 changes: 1 addition & 1 deletion cmake/schemes/url_sha1_autotools.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2013, 2015 Ruslan Baratov, Alexandre Pretyman
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include("@HUNTER_SELF@/cmake/Hunter")
Expand Down
2 changes: 1 addition & 1 deletion cmake/schemes/url_sha1_cmake.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015, Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
2 changes: 1 addition & 1 deletion cmake/schemes/url_sha1_download.cmake.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2015 Ruslan Baratov
# All rights reserved.

cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.5)
project(Hunter)

include(ExternalProject) # ExternalProject_Add
Expand Down
Loading

0 comments on commit 2e29b53

Please sign in to comment.