-
Notifications
You must be signed in to change notification settings - Fork 763
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
fastcdr is now required if security is on #207
fastcdr is now required if security is on #207
Conversation
8d89897
to
1e84b97
Compare
@mikaelarguedas Sorry, I've rebased internally |
I have a question about ament. Is it able to read the CMakeList.txt files and find the Currently we use a special macro However, ament works with your PR. Do you know the reason? Thanks |
TL;DRament just looks for In more details:
Notes for the future:We are in the process of switching our infrastructure to a new build tool, that tool is checking for any function call "<ANY_PREFIX>find_package" so this new tool could recognize But it will still not work in this case because your macro not called But it would require additional work to be able to recognize other macros like |
413eebf
to
ea8cbf0
Compare
Just reading this kind of from the side line: as @mikaelarguedas mentioned we can write custom logic to detect your custom macro name. But I would argue that the naming is awkward. Let me try to explain why:
Therefore I think the second name would make much more sense. Just my 2 cents but as we know naming and cache invalidation are the two most difficult parts of programming... 😉 |
For now i merge this PR. I'm agree with renaming our macros. When i finish the renaming i will warn you. Thanks |
You can do the rename in a backwards compatible fashion. After renaming the macro introduce a macro with the old name and just call the new name from it passing all args. Then existing code keeps working and you can update your code to call the new macro name. |
Fast-RTPS now requires fastcdr to compile the security plugins https://github.com/eProsima/Fast-RTPS/blob/8d89897fc9ec3f7e49057bfb2fbaa0d10b7abcf4/src/cpp/security/cryptography/AESGCMGMAC_Transform.h#L24
So it needs to be find_package with the "REQUIRED" option if
SECURITY
is passed to cmake.Without this patch Fast-RTPS cmake prints
-- fastcdr library not found...
and then fails at compilation time: