hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 359 forks source link

cmake: Fix "deprecated version compatibility" warning #240

Open Challanger524 opened 2 months ago

Challanger524 commented 2 months ago

PR for issue: #239

No practical difference in build, project builds&compiles fine with updated CMake but without odd compatibility warning.

The fix should be compatible with CMake < 3.12 as per docs:

If the running version of CMake is older than 3.12, the extra ... dots will be seen as version component separators, resulting in the ...<max> part being ignored and preserving the pre-3.12 behavior of basing policies on .