The renaming has primarily practical reasons during RTT development, if one version of RTT is installed (e.g. from Debian package) while working on another, incompatible version in a custom workspace. If RTT installs its headers directly to {prefix}/include/rtt (e.g. /usr/include/rtt) it cannot be avoided that dependents find the installed headers instead, which is likely to cause linker errors or segmentation faults.
This commit solves the problem at least for the case that RTT and all its dependents are present in the overlayed workspace and {prefix}/include/orocos of the installed version is not in the header search path.
Any objectives?
TODO:
rtt_typelib installs headers to include/rtt/typelib, which should also be changed to include/orocos/rtt/typelib then (see rtt_typelib/CMakeLists.txt:46). All other Orocos packages I am currently aware of are already installing their headers to include/orocos or use the orocos_install_headers() macro without overriding the default destination directory.
...for consistency with log4cpp (since toolchain-2.9), ocl and the default include directory for Orocos packages (see orocos_install_headers() and orocos_generate_package() macros in UseOrocos-RTT.cmake).
The renaming has primarily practical reasons during RTT development, if one version of RTT is installed (e.g. from Debian package) while working on another, incompatible version in a custom workspace. If RTT installs its headers directly to
{prefix}/include/rtt
(e.g./usr/include/rtt
) it cannot be avoided that dependents find the installed headers instead, which is likely to cause linker errors or segmentation faults.This commit solves the problem at least for the case that RTT and all its dependents are present in the overlayed workspace and
{prefix}/include/orocos
of the installed version is not in the header search path.Any objectives?
TODO:
include/rtt/typelib
, which should also be changed toinclude/orocos/rtt/typelib
then (see rtt_typelib/CMakeLists.txt:46). All other Orocos packages I am currently aware of are already installing their headers toinclude/orocos
or use theorocos_install_headers()
macro without overriding the default destination directory.