Skip to content

Conversation

@larshg
Copy link
Contributor

@larshg larshg commented Nov 7, 2025

As it is header only and currently doesn't export any symbols causing gpu modules to fail to link pcl_gpu_utils, as it doesn't get created.

… currently doesn't export any symbols causing gpu modules to not build.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR converts the pcl_gpu_utils library from a source-based library to a header-only INTERFACE library by removing the empty placeholder source file and updating the CMake configuration.

Key changes:

  • Removes the empty empty.cu file that was previously used to help CMake determine the link language
  • Updates PCL_CUDA_ADD_LIBRARY function to support an INCLUDES parameter for header files
  • Modifies the library creation to use INTERFACE mode with conditional CMake 3.19+ support for associating header files

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
gpu/utils/src/empty.cu Removes the empty placeholder CUDA file that is no longer needed
gpu/utils/CMakeLists.txt Converts library to INTERFACE mode by removing source file globbing and using INCLUDES parameter instead
cmake/pcl_targets.cmake Adds INCLUDES parameter support and CMake 3.19+ conditional logic for INTERFACE libraries with associated headers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@larshg larshg changed the title Change pcl gpu utils to a interface library Change pcl gpu utils to an interface library Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant