Closed QingfengLee closed 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
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.