From 96f735281f8178dcd0e06a9ff49a7f91d40c169f Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Mon, 16 Aug 2021 10:46:51 +0200 Subject: [PATCH] update minimum required to 3.1 fix warnings like: > CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): > Compatibility with CMake < 2.8.12 will be removed from a future version of > CMake. also ref. #338 --- _unittests/python/CMakeLists.txt | 3 +-- gtest/CMakeLists.txt.in | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/_unittests/python/CMakeLists.txt b/_unittests/python/CMakeLists.txt index 8a468bd87..1d04e1def 100644 --- a/_unittests/python/CMakeLists.txt +++ b/_unittests/python/CMakeLists.txt @@ -1,5 +1,4 @@ -# Target-based approach should work from CMake 2.8.12 but it should fully work from 3.1 -cmake_minimum_required(VERSION 2.8.12) +cmake_minimum_required(VERSION 3.1) # These variables have to be defined before running SETUP_PROJECT set(PROJECT_NAME jrl-cmakemodules-python) diff --git a/gtest/CMakeLists.txt.in b/gtest/CMakeLists.txt.in index cea55c0dc..2d7e05cad 100644 --- a/gtest/CMakeLists.txt.in +++ b/gtest/CMakeLists.txt.in @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.2) +cmake_minimum_required(VERSION 3.1) project(gtest NONE)