From 57b27fc546ba30cff64857d799f8546c921c7b02 Mon Sep 17 00:00:00 2001 From: nosracd Date: Mon, 8 Apr 2024 10:26:31 -0400 Subject: [PATCH] bump minimum cmake version to 3.5 (#502) older versions are deprecated --- CMakeLists.txt | 2 +- examples/c/CMakeLists.txt | 2 +- examples/cpp/CMakeLists.txt | 2 +- examples/cpp/lcm_log_writer/CMakeLists.txt | 2 +- lcm-cmake/lcmUtilities.cmake | 7 +------ 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 926ffaccd..255bb64e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) if(POLICY CMP0111) cmake_policy(SET CMP0111 NEW) diff --git a/examples/c/CMakeLists.txt b/examples/c/CMakeLists.txt index 2d432bff4..d9d8a8d51 100644 --- a/examples/c/CMakeLists.txt +++ b/examples/c/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_c_example) diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index 5ce9238b6..174b95d82 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_cpp_example) diff --git a/examples/cpp/lcm_log_writer/CMakeLists.txt b/examples/cpp/lcm_log_writer/CMakeLists.txt index 2d59ea959..069a22044 100644 --- a/examples/cpp/lcm_log_writer/CMakeLists.txt +++ b/examples/cpp/lcm_log_writer/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) project(lcm_log_writer) diff --git a/lcm-cmake/lcmUtilities.cmake b/lcm-cmake/lcmUtilities.cmake index be0803777..445bf566e 100644 --- a/lcm-cmake/lcmUtilities.cmake +++ b/lcm-cmake/lcmUtilities.cmake @@ -27,12 +27,7 @@ # lcm_install_python([DESTINATION ] # [...]) -if(WIN32) - # Need 'cmake -E env' - cmake_minimum_required(VERSION 3.1.0) -else() - cmake_minimum_required(VERSION 2.8.12) -endif() +cmake_minimum_required(VERSION 3.5.0) include(CMakeParseArguments) #------------------------------------------------------------------------------