neithere / argh

An argparse wrapper that doesn't make you say "argh" each time you deal with it.
http://argh.rtfd.org
GNU Lesser General Public License v3.0
369 stars 55 forks source link

cmake deprecation warning with cmake<3.5 #226

Closed theodoregoetz closed 6 months ago

theodoregoetz commented 6 months ago

Configuring with CMake causes build-system warnings

When configuring with cmake version 3.27 (and perhaps earlier versions as well), this warning is issued:

CMake Deprecation Error at external/argh/CMakeLists.txt:1 (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.

To Reproduce

Configure argh using cmake

cmake -B build -S .

Expected behavior

No warnings on cmake configure.

Environment

Tested on Fedora Linux, but this probably manifests on all operating systems.

Additional context

theodoregoetz commented 6 months ago

oops, wrong project, sorry about that!