Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 2.8.3)
cmake_minimum_required(VERSION 2.8.3...3.5)
Copy link

@peter-toft-greve peter-toft-greve Apr 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this enough for cmake 4? Don't we need 3.6 or higher?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, CMake 4.0.0 is still compatible with the policy of CMake 3.5 (if you check the error message, it refers to "Compatibility with CMake < 3.5", not "Compatibility with CMake <= 3.5"). This will print a warning for any CMake version >= 3.31, but I wanted to make the least possible invasive change here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good - who can approve?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think the project is maintained, see #275 and #312 .

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fyi I started a friendly fork with (among other things) CMake 4.0 support at https://github.com/ami-iit/serial_cpp, feel free to check it out.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmake_minimum_required(VERSION 3.10) fix compatibility and deprecation warning

project(serial)

# Find catkin
Expand Down