Skip to content

Fix C++ testing tutorial: comment out placeholder target_link_libraries > Cpp Testing #2833 (backport #6766)#6782

Merged
ahcorde merged 1 commit into
kiltedfrom
mergify/bp/kilted/pr-6766
May 15, 2026
Merged

Fix C++ testing tutorial: comment out placeholder target_link_libraries > Cpp Testing #2833 (backport #6766)#6782
ahcorde merged 1 commit into
kiltedfrom
mergify/bp/kilted/pr-6766

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 15, 2026

Description

  • The CMakeLists.txt snippet in the C++ testing tutorial includes target_link_libraries(${PROJECT_NAME}_tutorial_test name_of_local_library). name_of_local_library is a placeholder, so a literal copy-paste of the snippet fails to build (CMake can't find a target by that name).
  • This PR comments the line out and adds one sentence below the code block explaining that it's optional

Fixes # (issue)
Fixes ros2/lyrical_tutorial_party#2833

Did you use Generative AI?

yes, Claude

Additional Information

cc @kscottz


This is an automatic backport of pull request #6766 done by Mergify.

…es > Cpp Testing #2833 (#6766)

* Fix C++ testing tutorial: comment out placeholder target_link_libraries > Cpp Testing #2833

* Update source/Tutorials/Intermediate/Testing/Cpp.rst

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>

---------

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
(cherry picked from commit a1c1d3e)
@github-actions
Copy link
Copy Markdown

HTML artifacts: https://github.com/ros2/ros2_documentation/actions/runs/25914746440/artifacts/7015874224.

To view the resulting site:

  1. Click on the above link to download the artifacts archive
  2. Extract it
  3. Open html-artifacts-6782/index.html in your favorite browser

@ahcorde ahcorde merged commit 5cec717 into kilted May 15, 2026
7 checks passed
@ahcorde ahcorde deleted the mergify/bp/kilted/pr-6766 branch May 15, 2026 11:19
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.

2 participants