Skip to content

fix: use hololink_SOURCE_DIR in emulation for FetchContent compatibility - #92

Open
agirault wants to merge 1 commit into
nvidia-holoscan:release-2.6.0-EAfrom
agirault:fix/emulation-fetchcontent
Open

agirault wants to merge 1 commit into
nvidia-holoscan:release-2.6.0-EAfrom
agirault:fix/emulation-fetchcontent

Conversation

@agirault

@agirault agirault commented Mar 17, 2026

Copy link
Copy Markdown

Fix HOLOLINK_REL_PATH in src/hololink/emulation/CMakeLists.txt to use ${hololink_SOURCE_DIR} instead of ${CMAKE_SOURCE_DIR}: when consumed via CMake FetchContent, CMAKE_SOURCE_DIR points to the consuming project, breaking the include path for hololink_deps/dlpack.cmake

The top-level CMakeLists.txt was already fixed in 2.6.0-EA; this fixes the remaining occurrence in the emulation subsystem

When hololink is consumed via CMake FetchContent, CMAKE_SOURCE_DIR
points to the consuming project, not the hololink source tree. Use
hololink_SOURCE_DIR (set by FetchContent) so HOLOLINK_REL_PATH
resolves correctly in both standalone and subdirectory builds.

Signed-off-by: Alexis Girault <agirault@nvidia.com>
@agirault
agirault changed the base branch from main to release-2.6.0-EA March 17, 2026 14:33
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.

1 participant