nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
955 stars 135 forks source link

Updated CMake policy version to resolve deprecation warning. #337

Open joe-barnier opened 1 month ago

joe-barnier commented 1 month ago

From https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html:

Changed in version 3.27: Compatibility with versions of CMake older than 3.5 is deprecated. Calls to cmake_minimum_required(VERSION) or cmake_policy(VERSION) that do not specify at least 3.5 as their policy version (optionally via ...) will produce a deprecation warning in CMake 3.27 and above.

joe-barnier commented 1 month ago

No idea why the continuous-integration/appveyor/pr fails (and it also seems to be failing for other recent PR's).

Is that something someone else is looking into? Is it something I need to look into if I want this PR merged?