From f4ff6b9a995d574f438c36d3b2885a4b938b62a7 Mon Sep 17 00:00:00 2001 From: joe-barnier <57882401+joe-barnier@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:10:18 -0500 Subject: [PATCH] Updated CMake policy version to resolve deprecation warning. 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daf4e703..9851b634 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.2...3.5 FATAL_ERROR) PROJECT(units LANGUAGES CXX) set(units_VERSION 2.3.1)