xtensor-stack / xtl

The x template library
BSD 3-Clause "New" or "Revised" License
207 stars 96 forks source link

Update cmake_minimum_required version to 3.5 to avoid deprecation warning #275

Closed johncf closed 11 months ago

johncf commented 11 months ago

Building with cmake 3.27.5 generates this warning:

CMake Deprecation Warning at xtl/CMakeLists.txt:10 (cmake_minimum_required):
  Compatibility with CMake < 3.5 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.

Note: Adding a ...<max> suffix as per the suggestion above is only supported from cmake version 3.12.