Skip to content

Commit

Permalink
bump minimum cmake version to 3.5 (#502)
Browse files Browse the repository at this point in the history
older versions are deprecated
  • Loading branch information
nosracd committed Apr 8, 2024
1 parent fa094c1 commit 57b27fc
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)

if(POLICY CMP0111)
cmake_policy(SET CMP0111 NEW)
Expand Down
2 changes: 1 addition & 1 deletion examples/c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)

project(lcm_c_example)

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)

project(lcm_cpp_example)

Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/lcm_log_writer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.1)
cmake_minimum_required(VERSION 3.5)

project(lcm_log_writer)

Expand Down
7 changes: 1 addition & 6 deletions lcm-cmake/lcmUtilities.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@
# lcm_install_python([DESTINATION <PATH>]
# <FILE> [<FILE>...])

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)

#------------------------------------------------------------------------------
Expand Down

0 comments on commit 57b27fc

Please sign in to comment.