Skip to content

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

Merged
fujitatomoya merged 4 commits into
ros2:rollingfrom
deep-zspace:deep-zspace/rolling/fix-cpp-testing-placeholder
May 15, 2026
Merged

Fix C++ testing tutorial: comment out placeholder target_link_libraries > Cpp Testing #2833#6766
fujitatomoya merged 4 commits into
ros2:rollingfrom
deep-zspace:deep-zspace/rolling/fix-cpp-testing-placeholder

Conversation

@deep-zspace
Copy link
Copy Markdown
Contributor

@deep-zspace deep-zspace 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

Comment thread source/Tutorials/Intermediate/Testing/Cpp.rst Outdated
@fujitatomoya
Copy link
Copy Markdown
Collaborator

Note

backport to all downstream branches.

@ahcorde ahcorde added the backport-all backport at reviewers discretion; from rolling to all versions label May 15, 2026
ahcorde and others added 2 commits May 15, 2026 09:13
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
@ahcorde ahcorde requested a review from fujitatomoya May 15, 2026 10:32
@fujitatomoya fujitatomoya enabled auto-merge (squash) May 15, 2026 11:04
@fujitatomoya fujitatomoya merged commit a1c1d3e into ros2:rolling May 15, 2026
7 checks passed
ahcorde added a commit that referenced this pull request May 15, 2026
…es > Cpp Testing #2833 (#6766) (#6781)

(cherry picked from commit a1c1d3e)

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Deep Kotadiya <110234271+deep-zspace@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
ahcorde added a commit that referenced this pull request May 15, 2026
…es > Cpp Testing #2833 (#6766) (#6782)

(cherry picked from commit a1c1d3e)

Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Deep Kotadiya <110234271+deep-zspace@users.noreply.github.com>
Co-authored-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
ahcorde added a commit that referenced this pull request May 15, 2026
…es > Cpp Testing #2833 (backport #6766) (#6783)

(cherry picked from commit a1c1d3e)
Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Co-authored-by: Deep Kotadiya <110234271+deep-zspace@users.noreply.github.com>
Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
ahcorde added a commit that referenced this pull request May 15, 2026
…es > Cpp Testing #2833 (backport #6766) (#6784)

(cherry picked from commit a1c1d3e)

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Co-authored-by: Deep Kotadiya <110234271+deep-zspace@users.noreply.github.com>
Co-authored-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-all backport at reviewers discretion; from rolling to all versions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cpp Testing

3 participants