Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CMakeLists.txt #123

Open
wants to merge 1 commit into
base: ros2
Choose a base branch
from
Open

Update CMakeLists.txt #123

wants to merge 1 commit into from

Conversation

mosfet80
Copy link
Contributor

minimum active ros2 (humble) require cxx 17 standard and cmake >=3.8.

https://docs.ros.org/en/humble/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.92%. Comparing base (ad17b8d) to head (87ef1b8).
Report is 2 commits behind head on ros2.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             ros2     #123      +/-   ##
==========================================
+ Coverage   67.09%   68.92%   +1.83%     
==========================================
  Files           3        4       +1     
  Lines         641      698      +57     
  Branches        0       87      +87     
==========================================
+ Hits          430      481      +51     
- Misses        211      213       +2     
- Partials        0        4       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +4 to 8
# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
endif()

Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can drop the C++ standard definition completely, as C++17 is the default in Ubuntu 22 and later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, c++17 is not standard on all operating systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants