From ecba92f42e43c1785d47c8401f571ebbcc217783 Mon Sep 17 00:00:00 2001 From: Ben Webb Date: Tue, 18 Jun 2024 15:12:46 -0700 Subject: [PATCH] Add max version to placate CMake Recent CMake warns "Compatibility with CMake < 3.5 will be removed from a future version of CMake". Quiet this warning by setting a policy version. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 802fc2e..ff27f64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Are we running cmake from this directory (out of tree build) ? if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) - cmake_minimum_required(VERSION 2.8.12) + cmake_minimum_required(VERSION 2.8.12...3.6.0) project(imp_module) if(POLICY CMP0058)