From e8c19a2006ff0e8156f4fcb8ddb4fbb0dcf3fb4b Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Thu, 9 Apr 2026 11:14:15 -0600 Subject: [PATCH] build(cmake): bump lockstep_scheduler minimum to 3.10 (#27017) CMake 3.27+ warns on cmake_minimum_required(VERSION < 3.10), and CMake 4.x will make it a hard error. Align the lockstep_scheduler subdir with the root CMakeLists.txt, which is already at 3.10. Signed-off-by: Ramon Roche --- .../posix/src/px4/common/lockstep_scheduler/CMakeLists.txt | 2 +- .../posix/src/px4/common/lockstep_scheduler/test/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/posix/src/px4/common/lockstep_scheduler/CMakeLists.txt b/platforms/posix/src/px4/common/lockstep_scheduler/CMakeLists.txt index 7b4798c600..1adf45fd94 100644 --- a/platforms/posix/src/px4/common/lockstep_scheduler/CMakeLists.txt +++ b/platforms/posix/src/px4/common/lockstep_scheduler/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) # We want to test the lockstep schedule even if it is not used otherwise. px4_add_library(lockstep_scheduler diff --git a/platforms/posix/src/px4/common/lockstep_scheduler/test/CMakeLists.txt b/platforms/posix/src/px4/common/lockstep_scheduler/test/CMakeLists.txt index 4b30be206b..ffadd34e9d 100644 --- a/platforms/posix/src/px4/common/lockstep_scheduler/test/CMakeLists.txt +++ b/platforms/posix/src/px4/common/lockstep_scheduler/test/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) add_executable(lockstep_scheduler_test src/lockstep_scheduler_test.cpp