Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the incorrect include directory. #2024

Merged
merged 1 commit into from
Oct 16, 2017

Conversation

ShiningPluto
Copy link
Contributor

@ShiningPluto ShiningPluto commented Oct 13, 2017

The installed pcl_gpu_utils headers are placed in pcl/gpu/utils not pcl/gpu/utils/device.

@ShiningPluto
Copy link
Contributor Author

I'm confused about where the device headers should be installed. According to the source files, they should be put in the "device" directory in the module's include path; but in the "CMakeLists.txt" they are directly installed to the include path. This commit doesn't really fix the problem. Perhaps the correct choice is to fix those "CMakeLists.txt".

@SergioRAgostinho
Copy link
Member

This is related to #1910. In order to fix this correctly you need to change this line in order for the header installation to reproduce the source tree directory structure.

Try to mimic a working example like features.

@ShiningPluto
Copy link
Contributor Author

Then should this be fixed or just let it go?

@SergioRAgostinho
Copy link
Member

It's a bug and needs to be fixed, with the instructions I mentioned.

@@ -26,5 +26,6 @@ if(build)
PCL_MAKE_PKGCONFIG("${LIB_NAME}" "${SUBSYS_NAME}" "${SUBSYS_DESC}" "${SUBSYS_DEPS}" "${EXT_DEPS}" "" "" "")

# Install include files
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_PATH}" ${dev_incs} ${incs} ${srcs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_PATH}" ${incs} ${srcs})
Copy link
Member

Choose a reason for hiding this comment

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

Passing ${srcs} in here doesn't make much sense. Supposedly everything which is in src/ is not to be distributed/installed, only used for compiling pcl. Does not including it, prevent you from compiling the module?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not including it won't prevent me from compiling the module. I can't figure out why the ${srcs} should be installed either.

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.

3 participants