Open meyerj opened 4 years ago
This fixes a linker error with CMake 3.5.1, which as a result of
target_link_libraries(orocos-rtt-${OROCOS_TARGET}_dynamic /full/path/to/orocos_ws/install/liblog4cpp.so)
adds
-llog4cpp
to the linker command line because the library path is considered as an implicit link directory.
It is not, and that's why the linker fails to find log4cpp on my Xenial system:
/usr/bin/ld: cannot find -llog4cpp
Not sure why the catkin install-space inside the home directory is considered as an implicit link directory by CMake 3.5.1. Might be a bug.
NEW
liblog4cpp.so
This fixes a linker error with CMake 3.5.1, which as a result of
adds
to the linker command line because the library path is considered as an implicit link directory.
It is not, and that's why the linker fails to find log4cpp on my Xenial system:
Not sure why the catkin install-space inside the home directory is considered as an implicit link directory by CMake 3.5.1. Might be a bug.
Solution:
NEW
, if available. This will make sure that CMake adds the full path toliblog4cpp.so
to the linker command line. It is basically a follow-up of CMP0003 for implicit link directories, which we set toNEW
since https://github.com/orocos-toolchain/rtt/commit/8f6d7ffacc78479126267c4ee0e0384598a16b60.