Skip to content

Conversation

@artcore-c
Copy link

Description

This patch injects a standards-compliant snippet into CMakeLists.txt
(with appropriate platform guards) to explicitly set the C++14 standard.

Fixes

Resolves a build error encountered when using colcon on macOS,
due to default compiler settings lacking explicit C++ standard specification.

@cottsay cottsay requested a review from wjwwood June 11, 2025 18:54
@wjwwood
Copy link
Member

wjwwood commented Jun 12, 2025

What error is resolved? Just based on your comment about 14 vs 17, it does feel like something that the packages themselves should be setting (also it doesn't seem specific to macOS to me).

I'm just surprised that this isn't already required and that it's not c++17 that is required (we definitely use c++17 only features in rclcpp for example).

@wjwwood
Copy link
Member

wjwwood commented Jun 12, 2025

Sorry, I guess this isn't part of ament_cmake_ros's core functionally, so it's not setting the cpp standard for other packages.

It would still be nice to see the error that is being fixed by this.

@Yadunund Yadunund added the more-information-needed Further information is required label Jun 26, 2025
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Contributor

ahcorde commented Oct 2, 2025

@artcore-c do you mind to review @wjwwood comments ?

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
@ahcorde
Copy link
Contributor

ahcorde commented Nov 28, 2025

Changes are already in the rolling branch. Closing

@ahcorde ahcorde closed this Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

more-information-needed Further information is required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants