Description
I'm have a catkin package A
which adds debug;bar.so;optimized;bar.so
to the cmake variable ${A_LIBRARIES}
, and thus also adds to ${catkin_LIBRARIES}
:
I also have package B
that has a build depends on A
. When BConfig.cmake
is generated, the debug
and optimized
attributes are stipped out of ${B_LIBRARIES}
. This is done is catkin/cmake/catkin_package.cmake:249-264.
Suppose I add a catkin package C
which depends on A
and B
, in that order. In catkinConfig.cmake, A_LIBRARIES
will be added to catkin_LIBRARIES
with list_append_deduplicate
at line 84, and then B_LIBRARIES
will be added to catkin_LIBRARIES
with list_append_deduplicate
. How the dedeuplicate call will strip out bar.so
, leaving the words debug
and optimized
in catkin_LIBRARIES
.
Thus, we get:
catkin_LIBRARIES=debug;optimized;bar.so
I'm assuming that the solution is for catkinConfig.cmake
to do something similar to the debug/optimize stripping that's done in catkin_package.cmake
.
This is seen on catkin version 0.5.77