orocos-toolchain / orogen

Code generator for components and type handling in Rock - the Robot Construction Kit - and the Orocos Toolchain
http://rock-robotics.org
Other
4 stars 35 forks source link

Fix a bug. When orocos used in xenomai platform #148

Closed QingfengLee closed 2 years ago

QingfengLee commented 2 years ago

Fix a bug. When orocos used in xenomai platform, the default variable OrocosRTT_LIBRARIES is "/usr/local/lib/liborocos-rtt-xenomai.so;/usr/xenomai/lib/libalchemy.so;/usr/xenomai/lib/libcopperplate.so;/usr/xenomai/lib/libcobalt.so;/usr/xenomai/lib/libmodechk.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/librt.so;-Wl,--no-as-needed;-Wl,@/usr/xenomai/lib/modechk.wrappers;/usr/xenomai/lib/xenomai/bootstrap-pic.o",

there are commas in this variable, this will lead the error "set_target_properties called with incorrect number of arguments." when we use the cmake.

doudou commented 2 years ago

The bug is not in orogen. The bug is that OrocosRTT_LIBRARIES should contain only libraries, and have the flags into OrocosRTT_LDFLAGS

Then there seem to be a bug in orogen, in which orogen does not apply the LDFLAGS from OrocosRTT