Skip to content

fix dds targets issue on debian - #14203

Merged
Nir-Az merged 4 commits into
realsenseai:developmentfrom
AviaAv:cmake-debians-2
Aug 13, 2025
Merged

fix dds targets issue on debian#14203
Nir-Az merged 4 commits into
realsenseai:developmentfrom
AviaAv:cmake-debians-2

Conversation

@AviaAv

@AviaAv AviaAv commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Tracked on: [RSDSO-20432]

@AviaAv
AviaAv requested a review from Nir-Az August 11, 2025 12:34
Comment thread CMake/realsense2Config.cmake.in Outdated
include(CMakeFindDependencyMacro)

# Ask CMake to find the packages that provide the targets referenced by realsense2Targets.cmake
find_dependency(fastcdr CONFIG REQUIRED)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We only want this when DDS is on right?

No dependency if it's not, possible?

install(TARGETS dds fastrtps eProsima_atomic EXPORT realsense2Targets)

# install in order to set ARCHIVE DESTINATION - to put libfastcdr.a into the x86_64 folder
install(TARGETS fastcdr

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Add a comment about why it is needed at all

add_definitions(-DBUILD_WITH_DDS)

install(TARGETS dds EXPORT realsense2Targets)
install(TARGETS dds fastrtps eProsima_atomic EXPORT realsense2Targets)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Check w/o dds

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Needed by realdds
CMake Error: install(EXPORT "realsense2Targets" ...) includes target "realdds" which requires target "dds" that is not in any export set.

Comment thread CMake/realsense2Config.cmake.in Outdated
@@ -1,4 +1,7 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Check if needed or can be moved

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Needed because REALSENSE2_DDS_DEPENDENCIES contains find_dependency, but moved to the other file

@Nir-Az
Nir-Az merged commit a3d1511 into realsenseai:development Aug 13, 2025
25 of 26 checks passed
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