Skip to content

Commit

Permalink
Use CMake version range to support CMake 3.30 and newer (#51)
Browse files Browse the repository at this point in the history
PTLConfig's use of a single version in cmake_minimum_required results
in a warning:

```
CMake Deprecation Warning at build/source/externals/ptl/PTLConfig.cmake:30 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.
```

Use ...<max> suffix to state compatibility with newer versions and
resolve warning.
  • Loading branch information
drbenmorgan authored Nov 14, 2024
1 parent 381ff12 commit 8cd7137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Templates/PTLConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
@PACKAGE_INIT@

cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.8...3.27)

# -------------------------------------------------------------------------------------- #
# basic paths
Expand Down

0 comments on commit 8cd7137

Please sign in to comment.