From 267db9e2a234a4ecaed66d7c7d51d181bfd0d0e8 Mon Sep 17 00:00:00 2001 From: Nick Thompson Date: Sat, 16 Dec 2023 11:51:58 -0800 Subject: [PATCH] Update minimum cmake version to 3.5 Currently, cmake is emitting the following warning: ``` CMake Deprecation Warning at cmake/ccache.cmake:23 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. ``` Update the CMake min version to 3.5 to unclutter the build logs and ensure users don't get broken by the deprecation. --- cmake/ccache.cmake | 2 +- cmake/modern_project_structure.cmake | 2 +- example/CMakeLists.txt | 2 +- example/glide_computer_lib/CMakeLists.txt | 2 +- example/kalman_filter/CMakeLists.txt | 2 +- test/CMakeLists.txt | 2 +- test/unit_test/runtime/CMakeLists.txt | 2 +- test/unit_test/static/CMakeLists.txt | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmake/ccache.cmake b/cmake/ccache.cmake index f14ec3c0..ebc980a8 100644 --- a/cmake/ccache.cmake +++ b/cmake/ccache.cmake @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.5) macro(_enable_ccache_failed) if(NOT _enable_ccache_QUIET) diff --git a/cmake/modern_project_structure.cmake b/cmake/modern_project_structure.cmake index 3accf45e..413709e8 100644 --- a/cmake/modern_project_structure.cmake +++ b/cmake/modern_project_structure.cmake @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.4) +cmake_minimum_required(VERSION 3.5) function(ensure_entry_point) if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index dae84e82..5c4bc3c4 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) add_library(example_utils INTERFACE) target_include_directories(example_utils INTERFACE include) diff --git a/example/glide_computer_lib/CMakeLists.txt b/example/glide_computer_lib/CMakeLists.txt index cd6cbcae..9534977d 100644 --- a/example/glide_computer_lib/CMakeLists.txt +++ b/example/glide_computer_lib/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) add_library(glide_computer_lib STATIC glide_computer_lib.cpp include/glide_computer_lib.h) target_link_libraries(glide_computer_lib PRIVATE mp-units::core-fmt PUBLIC mp-units::si mp-units::utility example_utils) diff --git a/example/kalman_filter/CMakeLists.txt b/example/kalman_filter/CMakeLists.txt index f1370018..ef91cdcb 100644 --- a/example/kalman_filter/CMakeLists.txt +++ b/example/kalman_filter/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) # # add_example(target ...) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 6ff4d0c9..0b8c706a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) add_subdirectory(unit_test/runtime) add_subdirectory(unit_test/static) diff --git a/test/unit_test/runtime/CMakeLists.txt b/test/unit_test/runtime/CMakeLists.txt index ae7936b6..29846ad2 100644 --- a/test/unit_test/runtime/CMakeLists.txt +++ b/test/unit_test/runtime/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) find_package(Catch2 3 CONFIG REQUIRED) diff --git a/test/unit_test/static/CMakeLists.txt b/test/unit_test/static/CMakeLists.txt index 4429eee4..09e09ffd 100644 --- a/test/unit_test/static/CMakeLists.txt +++ b/test/unit_test/static/CMakeLists.txt @@ -20,7 +20,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.5) add_library(unit_tests_static_truncating quantity_test.cpp) target_link_libraries(unit_tests_static_truncating PRIVATE mp-units::mp-units)