catkin_symlink_install_files/directory/programs() use generated functions that store the value of CMAKE_CURRENT_SOURCE_DIR at the time they are generated. This value is incorrect when install(...) is called from a directory using add_subdirectory() as is the case in gencpp. This fixes the issue by passing the current source directory to the generated functions at the time that they're called.
Noticed while reviewing #1100 and trying to build gencpp using
catkin_symlink_install_files/directory/programs()
use generated functions that store the value ofCMAKE_CURRENT_SOURCE_DIR
at the time they are generated. This value is incorrect wheninstall(...)
is called from a directory usingadd_subdirectory()
as is the case in gencpp. This fixes the issue by passing the current source directory to the generated functions at the time that they're called.Noticed while reviewing #1100 and trying to build
gencpp
using