Skip to content

Commit

Permalink
feat: Set cmake_minimum_required to 3.12...3.25
Browse files Browse the repository at this point in the history
* Require CMake 3.12 at minimum to allow use of modern find_package
   - c.f. https://cmake.org/cmake/help/v3.12/command/find_package.html
* Set range of valid CMake versions to allow for more modern CMakes
  to be used if available.
   - c.f. https://cliutils.gitlab.io/modern-cmake/chapters/basics.html
  • Loading branch information
matthewfeickert committed Feb 14, 2023
1 parent ca73565 commit 9e040a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-------------------------------------------------------------------------------
# Project description
#-------------------------------------------------------------------------------
cmake_minimum_required( VERSION 3.1 )
cmake_minimum_required(VERSION 3.12...3.25)

project( XRootD )

Expand Down
2 changes: 1 addition & 1 deletion packaging/wheel/TestCXX14.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Test with cmake if the compiler supports all features of C++14
###############################################################################

cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
cmake_minimum_required(VERSION 3.12...3.25 FATAL_ERROR)
project(TestCXX14 CXX)

message("Your C++ compiler supports these C++14 features:")
Expand Down

0 comments on commit 9e040a0

Please sign in to comment.