open-source-parsers / jsoncpp

A C++ library for interacting with JSON.
Other
8.06k stars 2.63k forks source link

CMake 3.27 warns about compatibility with CMake <3.5 #1521

Open kostasdizas opened 9 months ago

kostasdizas commented 9 months ago

Describe the bug CMake 3.27 released earlier this year drops compatibility with CMake <3.5. jsoncppConfig.cmake.in requires version 3.0. Using it in a project produces a deprecation warning:

  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 Steps to reproduce the behavior:

  1. Using CMake 3.27,

Expected behavior The project is configured without any warnings.

Desktop (please complete the following information):

daudrain commented 9 months ago

Looks to be addressed by #1499