-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Removal of PCL_DEFINITIONS #1685
Comments
Talking about When removing |
If you remove the I'm not expert on this, but I've recently run into issues using other software. The client code crashes because of unaligned memory using vectorized operations, unless it's built with the same flags as the library code. |
You are right. In fact, we are working on this in #2100. I think this issue can be closed. |
The client code has to include pcl_config.h, wherein it will find the preprocessor defines. Only the flags that aren't preprocessor defines should be added via CMake, using the target_compile_definitions command, and only if the client code must be required to use the same flags in order to run (I'm no expert on which ones those are), should should those be added using the PUBLIC argument. |
[...] target_compile_options [...] Check the differences between the options vs the definitions here. |
Only half of the issue is being addressed in #2100, which is passing the compiler options (and definitions) to downstream targets. We still need to ensure all preprocessed definitions are strictly in pcl_config. |
Reviving old issue for discussion
|
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs. |
This is consumer facing code and is potentially creating a breaking change. What should be done here? Keep or remove? |
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs. |
Just a reminder on the discussion which started at #1478.
The main point, by @Algomorph
The text was updated successfully, but these errors were encountered: