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

ament_cmake_vendor_package: Switch to CMake 'bracket arguments' #461

Merged
merged 1 commit into from Jun 20, 2023

Conversation

cottsay
Copy link
Contributor

@cottsay cottsay commented Jun 15, 2023

This syntax behaves like a verbatim text block. Previously, escape sequences and characters which require escaping which were present in any of these variables could result in a broken configuration.

For example, the rosbag2 CI specifies -DCMAKE_CXX_FLAGS="-Werror", which is a valid configuration. This gets expanded in the cache file to set(CMAKE_CXX_FLAGS ""-Werror"" CACHE INTERNAL ""), which is interpreted as ;-Werror"" instead of "-Werror".

This should resolve the CI failure in ros2/rosbag2#1400.

https://cmake.org/cmake/help/latest/manual/cmake-language.7.html#bracket-argument

This syntax behaves like a verbatim text block. Previously, escape
sequences and characters which require escaping which were present in
any of these variables could result in a broken configuration.

Signed-off-by: Scott K Logan <logans@cottsay.net>
@cottsay cottsay added the bug Something isn't working label Jun 15, 2023
@cottsay cottsay requested a review from clalancette June 15, 2023 22:17
@cottsay cottsay self-assigned this Jun 15, 2023
@cottsay cottsay requested a review from mjeronimo as a code owner June 15, 2023 22:17
@cottsay cottsay changed the title ament_cmake_vendor_package: Switch to CMake 'braket arguments' ament_cmake_vendor_package: Switch to CMake 'bracket arguments' Jun 15, 2023
@cottsay
Copy link
Contributor Author

cottsay commented Jun 15, 2023

  • Linux Build Status
  • Linux Build Status (FORCE_BUILD_VENDOR_PKG)
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@cottsay cottsay merged commit 75a74e2 into rolling Jun 20, 2023
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the cottsay/ament_vendor branch June 20, 2023 14:34
@cottsay
Copy link
Contributor Author

cottsay commented Jun 20, 2023

@Mergifyio backport iron

@mergify
Copy link

mergify bot commented Jun 20, 2023

backport iron

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 20, 2023
This syntax behaves like a verbatim text block. Previously, escape
sequences and characters which require escaping which were present in
any of these variables could result in a broken configuration.

Signed-off-by: Scott K Logan <logans@cottsay.net>
(cherry picked from commit 75a74e2)
cottsay added a commit that referenced this pull request Jun 20, 2023
…#465)

This syntax behaves like a verbatim text block. Previously, escape
sequences and characters which require escaping which were present in
any of these variables could result in a broken configuration.

Signed-off-by: Scott K Logan <logans@cottsay.net>
(cherry picked from commit 75a74e2)

Co-authored-by: Scott K Logan <logans@cottsay.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants