Using Fast-DDS-Gen v2.5 (omitting -o option) results in the following cpp code for MyMessage.idl:
...
#include "MyEnumsPubSubTypes.h"
...
However, because MyEnums.idl only defines enums, the MyEnumsPubSubTypes.h file is never generated by Fast-DDS-Gen, leading to an invalid include directive in the generated cpp file for MyMessage.h (and/or MyMessagePubSubTypes.h; I'm working from memory).
This appears to be a regression in Fast-DDS-Gen v2.5. Version 2.4 is handling this properly.
212 fixed the issue you mention in master and it is going to be formally released in the coming weeks. I am going to close the issue as it is already fixed.
Consider the following:
MyEnums.idl:
MyMessage.idl:
Using Fast-DDS-Gen v2.5 (omitting
-o
option) results in the following cpp code for MyMessage.idl:However, because MyEnums.idl only defines enums, the MyEnumsPubSubTypes.h file is never generated by Fast-DDS-Gen, leading to an invalid include directive in the generated cpp file for MyMessage.h (and/or MyMessagePubSubTypes.h; I'm working from memory).
This appears to be a regression in Fast-DDS-Gen v2.5. Version 2.4 is handling this properly.